how to download packages from a private nuGet host

2019-08-23 11:41发布

I am very new to the nuget world. 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?

2条回答
爷、活的狠高调
2楼-- · 2019-08-23 12:14

In Visual Studio, click Tools > Nuget Package Manager > Package Manager Settings. Select Package Sources and add your private server url in there. 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. You can browse it the same as you browse nuget.org.

Nuget Options

Manage package for solution

查看更多
一夜七次
3楼-- · 2019-08-23 12:14

For all such purposes, NuGet supports setting up private package sources in the following ways:

  • 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+). For details, see Local Feeds.

  • NuGet.Server: Packages are made available through a local HTTP server. For details, see NuGet.Server.

  • NuGet Gallery: Packages are hosted on an Internet server using the NuGet Gallery Project. 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.

查看更多
登录 后发表回答