Adding img to YAK packages when using Visual Studio

When using the most recent Visual Studio Plugin wizard to start a GH plugin project, I have the option to build a .yak package directly — Actually if I choose to multi-target, this seems to be the only way.

However, I cannot find a place to add the icon that’s going to show in PackageManger in Rhino.

I had a script to build yak manually before, and added the icon and label to the manifest.yml.

So how should I do it now in Visual Studio?

The build yak option is something we’re working on to make the templates more “batteries included”.

This is not currently possible with the automatic system, if you need an icon, for now, using the manual solution is the best system.

1 Like

Thanks for the answer.

For those whose encounter the same issue and checked this post –

The .yak is actually just a .zip file. You can open it with a unzip programme and add the icon file and change the manifest.yml inside.

Tested, and it works.

And for manual solution, how do you include all targets in one yak file? Just pack all the folders from the bin and that’s it?

(I checked the files inside .yak and it seems like so.)

Yes, for Rhino 8 and up, you pack the net48/net7.0/net9.0 etc.
For Rhino 7 you pack inside the net48 folder.