简体   繁体   English

如何从私人nuGet主机下载软件包

[英]how to download packages from a private nuGet host

I am very new to the nuget world. 我对nuget世界非常陌生。 I have to use some private packages that are hosted in the private server. 我必须使用托管在私有服务器中的一些私有软件包。 (I know the server URL). (我知道服务器的网址)。 Could anyone tell me how to browse and download those package present in this private host? 谁能告诉我如何浏览和下载此私人主机中的软件包?

In Visual Studio, click Tools > Nuget Package Manager > Package Manager Settings. 在Visual Studio中,单击工具> Nuget程序包管理器>程序包管理器设置。 Select Package Sources and add your private server url in there. 选择包源,然后在其中添加您的私有服务器URL。 After that, when you click Manage Nuget Package for Solution, you will see drop down list on the right side with your private Nuget Server as a Package source. 之后,当您单击“管理解决方案的Nuget软件包”时,您将在右侧看到下拉列表,其中带有您的私有Nuget Server作为软件包源。 You can browse it the same as you browse nuget.org. 您可以像浏览nuget.org一样浏览它。

Nuget选项

管理解决方案的软件包

For all such purposes, NuGet supports setting up private package sources in the following ways: 为此,NuGet支持通过以下方式设置私有软件包源:

  • Local feed : Packages are simply placed on a suitable network file share, ideally using nuget init and nuget add to create a hierarchical folder structure (NuGet 3.3+). 本地提要 :程序包仅放置在适当的网络文件共享上,理想情况下,使用nuget init和nuget add创建分层文件夹结构(NuGet 3.3+)。 For details, see Local Feeds. 有关详细信息,请参阅本地供稿。

  • NuGet.Server : Packages are made available through a local HTTP server. NuGet.Server :包可通过本地HTTP服务器使用。 For details, see NuGet.Server . 有关详细信息,请参见NuGet.Server

  • NuGet Gallery : Packages are hosted on an Internet server using the NuGet Gallery Project . NuGet Gallery :使用NuGet Gallery Project将程序包托管在Internet服务器上。 NuGet Gallery provides user management and features such as an extensive web UI that allows searching and exploring packages from within the browser, similar to nuget.org. NuGet Gallery提供用户管理和功能,例如扩展的Web UI,该界面允许从浏览器中搜索和浏览软件包,类似于nuget.org。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM