Search code examples
azurevisual-studiodevopsvisual-studio-2022azure-artifacts

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


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


Solution

  • 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