![](http://habrastorage.org/getpro/habr/avatars/6a0/c9d/bab/6a0c9dbabacebb48f9984fdc854c9dd4.jpg)
NuGet 1.4 update, what's new?
![image](http://microgeek.ru/upload/blog/visualstudio/056/05630085c1049356c4ee6700562bcd3a.png)
Recently, the NuGet package 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 functions of the Update-Package
team The Update-Package team received several additional features at once:
- updating all packages in one project: Update-Package -Project MvcApplication1;
- updating a package in all projects at once: Update-Package PackageId;
- updating all packages in all projects: Update-Package;
- Implementation of safe updates for all packages: Update-Package –Safe.
Package management at the solution level
In the new version of NuGet, it is now possible to manage packages using the GUI not only at the level of a separate project, but also at the solution level. This will allow, for example, to install the package immediately for all projects.
![image image](http://vyunev.files.wordpress.com/2011/06/image42.png?w=513&h=350)
![image image](http://vyunev.files.wordpress.com/2011/06/image43.png?w=370&h=316)
To launch the package management window for the solution, select Manage NuGet Packages from the solution options menu.
Restriction on upgrading to versions
In the project package list description file
packages.config
added a new property allowedVersions, which allows you to restrict for certain packages the version to which the package can be updated. For example, below SomePackage is limited to versions 2.0 (inclusive) to 3.0 (3.0 excluded). ![image image](http://vyunev.files.wordpress.com/2011/06/image44.png?w=580&h=82)
The format for describing the version range is described here .
Package Visualizer
NuGet 1.4 includes a new tool that allows you to visualize installed packages in a solution with all the dependencies.
![image image](http://vyunev.files.wordpress.com/2011/06/image45.png?w=550&h=350)
This tool is only available for Visual Studio 2010 Premium and above.
Automatically check for the availability of a new version of NuGet.
In the GUI of the package manager, the ability to automatically check for the availability of a new version of NuGet with notification and the possibility of updating has been added.
Other improvements
- dialogs: some menu items have been renamed, the NuGet dialog now displays package tags, the date of the last update of the package is displayed;
- PowerShell: signed scripts have been added for use in restricted environments, the console supports the ability to receive user input through $ host.ui.Prompt and $ host.ui.PromptForChoice;
- Nuget.exe multiple shell enhancements
- New NuGet server features for working with nuget.exe;
- 88 incidents were closed, of which 71 were flagged as bugs.