NuGet 1.4 update, what's new?

    image
    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.
    Safe update means updating packages only to new minor versions: for example, to 1.0.2, but not to 1.1.

    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

    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 filepackages.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

    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

    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.

    Also popular now: