Skip to content

augustoproiete-repros/visual-studio-does-not-display-jpeg-icons-of-nuget-packages

Repository files navigation

Visual Studio does not display JPEG icons of NuGet packages

NuGet/Home#11144

From the nuspec documentation (emphasis mine):

icon

It is a path to an image file within the package, often shown in UIs like nuget.org as the package icon. Image file size is limited to 1 MB. Supported file formats include JPEG and PNG. We recommend an image resolution of 128x128.

However, as of Visual Studio 2019 (16.10.4) JPEG icons are not being displayed in the NuGet Package Manager UI:

Screenshot Visual Studio NuGet Package Manager UI

Repro

I created two example NuGet packages using JPEG icons:

Embedded Icon

Screenshot Package with JPEG Icon Embedded

https://www.nuget.org/packages/PackageWithJpegIconEmbedded/

URL Icon

Screenshot Package with JPEG Icon Url

https://www.nuget.org/packages/PackageWithJpegIconUrl/


Related: NuGet/Home#8189 (comment)