Answer the question
In order to leave comments, you need to log in
How to install NuGet package?
Good afternoon!
There was a problem at the workplace: for development under Visual Studio 2013, you need to install two libraries (Entity Framework 6 and ODP.NET). On a personal laptop, there were no problems, and no: launched the manager-> selected a package-> the package was added to the project-> sit and work. On a working machine that is running in a corporate domain with a bunch of security settings, Package Manager in VS2013 refuses to download packages "in a good way" and issues "unable to connect to the remote server". Although through the browser I can easily get to the nuget.org site.
I decided to get around this problem and install the packages manually: I downloaded the assemblies in the .nupkg format, set the manager on them through the command "Install-Package C:\Path\To\Some\File.nupkg",
Has anyone encountered this? How to install packages offline?
UPD: I managed to solve "temporarily" like this: Package Manager -> Settings -> Package Sources. I specified the Windows folder with the downloaded packages and everything worked locally. Minus: you must first download the packages with pens and store them in a folder.
Answer the question
In order to leave comments, you need to log in
At our work, too, all traffic to the Internet passes through a corporate proxy (squid). With ntlm authentication. I set up cntlm for myself and wrap fiddler on it . To all my programs that want to download something from the Internet, updates or packages (maven, nuget, linux-updates, etc.) I prescribe a proxy to my fiddler and they download from the Internet without authentication.
If you do not use ntlm authentication on a proxy, then you can exclude cntlm and try to work only through fiddler. In this case, your fiddler looks like a "faucet", through which you can see all the traffic through which your programs go to the Internet.
PS
For Visual Stidio it will be enough if you just turn fiddler (F12) into proxy mode. VS picks up the system proxy, which fiddler intercepts and goes to the Internet through fiddler and its nuget normally downloads packages and updates.
PPS
Sometimes cntlm crashes and its service needs to be restarted. Not very reliable, but it's not critical for me either.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question