简体   繁体   中英

How to include nuget packages in a project to make the project portable

According to this , I decided to use nuget in the project. I would like to make it "portable" - add the used packages in the git repository and requiering no internet connection on the server side. What is the way to do it?

You should add path to the local copy of the repository, your NuGet location to the Options -> NuGet Package Manager -> Package Sources and install the NuGet from this location instead of installing it from the server or anywhere else.

Having the location of your NuGet files inside the NuGet.config file which is used by Visual Studio when building the project, will download the needed packages from the specified location.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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