我是靠谱客的博主 俏皮冬瓜,最近开发中收集的这篇文章主要介绍安装NuGetUpdating NuGetInstalling a CI build,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

转载于 http://docs.nuget.org/docs/start-here/installing-nuget

NuGet can be installed and updated using the Visual Studio Extension Manager. To check if your copy of Visual Studio already has the NuGet extension, look for Library Package Manager in the Tools menu of your copy of Visual Studio.

menu

If your copy of Visual Studio does not already have the Library Package Manager (NuGet) extension, you can install it using the Extension Manager.

Using the Extension Manager

In Visual Studio, click Tools and then Extension Manager.

In the Extension Manager dialog box, select the Online Gallery tab, and enter "nuget" in the search box to find the NuGet Package Manager extension.

Select NuGet Package Manager and then click Download.

extension manager showing nuget

In the Installer dialog box, click Install.

visual studio extension installer

When installation is complete, close and re-open Visual Studio.

visual studio extension installer complete

NuGet is now ready to use.

You can also install NuGet from the Visual Studio Gallery by downloading and executing the extension installer.

screen shot of nuget on the visual studio gallery on msdn

Download and run the VSIX file. You'll need to agree to the terms, wait for the install to complete and then exit. Close all open instances of Visual Studio and restart.

NuGet is now ready to use.

Updating NuGet

You can update NuGet using the Visual Studio Extension Manager. Navigate to the Extension Manager and click on the Updates tab to check for updates.

If there is a new version of NuGet you will see it in the list of available updates.

extension manager showing a new version of nuget available

Select NuGet in the list and click Update. When the update is complete, close and re-open all open instances of Visual Studio.

Installing a CI build

If you want to run the very latest unreleased build of NuGet, you can install it from the Build Server.

Important note: the official NuGet build is signed, while the one from the Build Server is not. For that reason, Visual Studio will not let you install a CI build if you already have an official build installed. If you do, you'll get an error that looks like:

The installed version of 'NuGet Package Manager' is signed, but the update version is not signed. Therefore, Extension Manager cannot install the update.

To avoid this issue, you need to uninstall the official build (from the VS extension manager) before installing the unsigned build. Likewise, please uninstall the unsigned build before going back to an official build. However, you don't need to do this from going to a unsigned build to a newer unsigned build. If Visual Studio won't allow you to uninstall the extension (the Uninstall button is disabled), then you likely need to restart Visual Studio using "Run as Administrator."

 

最后

以上就是俏皮冬瓜为你收集整理的安装NuGetUpdating NuGetInstalling a CI build的全部内容,希望文章能够帮你解决安装NuGetUpdating NuGetInstalling a CI build所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(90)

评论列表共有 0 条评论

立即
投稿
返回
顶部