📜 ⬆️ ⬇️

Update NuGet 1.4, what's new?

image
Recently, the NuGet batch manager for the .NET platform received another update to version 1.4. Here are the main innovations in the new version. A complete and detailed list of innovations is available on the official website .

More features of the Update-Package command

The Update-Package team received several additional features at once:Safe update means updating packages only to new minor versions: for example, 1.0.2, but not 1.1.
')
Package Management at Solution Level

In the new version of NuGet, it became possible to manage packages using the GUI, not only at the level of an individual project, but also immediately at the decision level. This will allow, for example, to install a package for all projects at once.

imageimage

To launch the package management window for the solution, select Manage NuGet Packages from the solution options menu.

Upgrade to version limit

A new property called allowedVersions has been added to the package description file of the packages.config project, which allows you to restrict for certain packages the version to which the package can be updated. For example, below the package SomePackage is limited to versions from 2.0 (inclusive) to 3.0 (3.0 excluded).

image

The format for describing the range of versions is described here .

Package Visualizer

NuGet 1.4 includes a new tool that allows you to visualize installed packages in a solution with all dependencies.

image

This tool is only available for Visual Studio 2010 Premium and above.

Automatic check for new version of NuGet

The ability to automatically check the availability of a new version of NuGet with notification and the ability to update has been added to the package manager GUI.

Other improvements

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


All Articles