豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 2.51 KB

File metadata and controls

41 lines (27 loc) · 2.51 KB
title NuGet 2.2 Release Notes
description Release notes for NuGet 2.2 including known issues, bug fixes, added features, and DCRs.
author JonDouglas
ms.author jodou
ms.date 11/11/2016
ms.topic conceptual

NuGet 2.2 Release Notes

NuGet 2.1 Release Notes | NuGet 2.2.1 Release Notes

NuGet 2.2 was released on December 12, 2012.

Visual Studio Quick Launch

One of the new features that was added in Visual Studio 2012 was the quick launch dialog. NuGet 2.2 extends this dialog, allowing it to initialize the package manager dialog with the search terms entered in the quick launch. For example, entering 'jquery' in quick launch now includes an option in the results to search NuGet packages matching 'jquery'.

NuGet in Visual Studio Quick Launch

Selecting this option will launch the standard NuGet package manager search experience for the term 'jquery'.

Pre-populated NuGet Package Manager Dialog

Specify Entire Folder for Package Contents

NuGet 2.2 now allows you to specify an entire folder in the <file> element of the .nuspec file to include all of the contents of that folder. For example, the following will cause all scripts in the package's scripts folder to be added to the contents\scripts folder when the package is installed into a project.

<file src="scripts\" target="content\scripts"/>

Update 6/24/16: Empty folders in the "content" folder are ignored when installing the package.

Known Issues

Package installation fails for F# projects when using the package manager console

When attempting to install a NuGet package into an F# project using the package manager console, an InvalidOperationException is thrown. We are actively working with the F# team to resolve the issue, but in the meantime, the workaround is to install NuGet packages into F# projects via NuGet's package manager dialog rather than the console. [More information is available on CodePlex](http://nuget.codeplex.com/workitem/2873).

Bug Fixes

NuGet 2.2 includes many bug fixes. For a full list of work items fixed in NuGet 2.2, please view the [NuGet Issue Tracker for this release](http://nuget.codeplex.com/workitem/list/advanced?keyword=&status=Closed&type=All&priority=All&release=NuGet%202.2&assignedTo=All&component=All&sortField=LastUpdatedDate&sortDirection=Descending&page=0).