Can I precede the NuGet packages displayed in the VS Package Manager user interface?

I am using a custom NuGet feed to deploy my own NuGet packages. I use semver , so my CI server generates the deployment of new preerelease packages for each assembly. These pre-access packages are obviously not displayed by default in the package manager.

Is there a way to indicate at the package / feed / global level that pre-send packages should appear on the Updates tab in the package manager?

If I install a preliminary package, for example, editing the packages.config file, my package is clearly marked in the package manager with a red label β€œPrerelease”, so the manager correctly understands version control.

+6
source share
1 answer

I found out that you can upgrade a specific package to a preliminary version using the Powershell console . The Update-Package command accepts the -IncludePrerelease flag, and you can update dependencies for all projects with a single command:

 Update-Package <Package-Id> -IncludePrerelease 

The above command will be updated to the latest provisional version. If you want to upgrade to a specific version, you can specify it below:

 Update-Package <Package-Id> -IncludePrerelease -Version <version-number> 

UPDATE:

NuGet 1.7 shows pre-send packages in the Manage NuGet Package dialog box.

+4
source

Source: https://habr.com/ru/post/907776/


All Articles