In Visual Studio 2022 the Published nuget package in artifact with version number and suffix are missing

111 Views Asked by At

We published latest version with build suffix as environment. It is published in the artifact feed but it is not showing in Visual Studio.

The versions with just build number like 2.0.1 is showing and missing 2.0.1-env.

Included version suffix in .csproj

Included version suffix in version number in Azure pipeline

1

There are 1 best solutions below

2
On BEST ANSWER

In the rules of NuGet package versioning, any version number has a -Suffix will be considered as a pre-release package version. See "NuGet Package version Reference".

In Visual Studio, on the "Manage NuGet Packages..." window, it will not list the pre-release package versions by default.

To let the pre-release package versions can be listed, you need to enable the "Include prerelease" option on the window.

enter image description here

enter image description here

enter image description here