This article is a mirror article of machine translation, please click here to jump to the original article.

View: 30769|Reply: 0

[Source] vs install the nuget offline package nupkg file

[Copy link]
Posted on 2/24/2017 2:37:23 PM | | | |

Recently, the project needed to add a dependency to NuGet, but the company's development machine had no network...
Speaking of which, you may not believe it, but the development machine that does development actually has no network!!!! (Then why don't you leave the flash person quickly)
There is no way, the project needs to throw things into VS, only find a way to add dependencies
If you have a network, adding dependencies in NuGet is very simple, just search for it and install it directly.
Back to the point, let's talk about the problem of installing package dependencies in NuGet offline.

First of all.
https://www.nuget.org/
This is the official website of NuGet, click in, and then search for the installation package you need in the search box, I need to install Geckofx, so search for this (for example).



Then, open VS, select Toolbar - Nuget Package Manager - General - Browse



We click browse, and then the explorer will open the cache directory of nuget, my cache directory is: C:\Users\itsvse\AppData\Local\NuGet\Cache

We cut the downloaded nupkg package to the C:\Users\itsvse\AppData\Local\NuGet\Cache directory.


Finally, run the following command in the nuget console:


Or:









Previous:WeChat web version login to send message analysis
Next:How GeckoFX references jquery files and executes custom JS
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com