Currently I'm developing on a virtual pc which is not allowed internet access. I managed to get the NuGet.Tools.vsix to add NuGet to Visual Studio 2010, but cannot seem to find out how to deploy NuGet-packages offline.
For example, I downloaded EntityFramework 5.0.0 nuget.org and moved it to my virtual pc. How should I perform the last step of deploying this package to my solution?
Thanks in advance
To download a local installation package, select the Download all, then install option in the dropdown at the bottom of the Workloads tab of the Visual Studio Installer.
Open your file, and inside packageSources add a new local key following this structure <add key="local" value="path" /> . This path can be a relative or absolute from NuGet. config folder. Now you can install a package locally with dotnet add package and source option to local.
Click the Package Sources tab within the settings dialog, followed by the 'plus' icon in the top left to add a new package source. Enter the Name and Source of your local repository. The name can be any string and will be the name displayed in the NuGet Package Manager within Visual Studio.
Switch to the Browse tab, search for the package name, select it, then select Install). For all packages, delete the package folder, then run nuget install . For a single package, delete the package folder and use nuget install <id> to reinstall the same one.
1) Tools - > Options -> Package Manager
2) Then click Source and Add.
3) Then You can find on the list and istall.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With