We are hosting our own nuget server through Teamcity. Is there any other way to add an icon to a .nuspec file other than specifying a web url (http://....)?
Or is there a place in Teamcity that these icons could be hosted?
As of NuGet 5.3.0 you can now use <icon>
to provide a relative path to your JPEG or PNG icon file located within your package.
<package> <metadata> ... <icon>images\icon.png</icon> ... </metadata> <files> ... <file src="..\icon.png" target="images\" /> ... </files> </package>
Source: https://docs.microsoft.com/en-us/nuget/reference/nuspec#icon
<iconUrl>
is now deprecated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With