15

I've been trying to install Nuget Package, as I don't use Visual Studio for some reasons, I need to do it without Visual Studio.

Is there any way?

Please help me out.

2
  • 2
    stackoverflow.com/questions/14894864/… Commented Jul 19, 2016 at 14:26
  • I have already downloaded the file required. I failed in keeping it in right place. Any suggestions? Sorry I am new to this. Commented Jul 19, 2016 at 14:26

3 Answers 3

9

After download the NuGet package, please unzip it to local folder, which will list all content of this package. Then add the dlls in the unzipped folder into your project through Add Reference.

For example, I download EntityFramework package from nuget.org site. It will show as entityframework.6.1.3.nupkg. I unzip this .nupkg file to local folder and there has a lib folder in this unzipped folder. Then I find the EntityFramework.dll and EntityFramework.SqlServer.dll in that folder. I add these dlls as reference into my project.

Another way install packages without Visual Studio is using nuget.exe. Please download it from https://dist.nuget.org/win-x86-commandline/latest/nuget.exe

Then open command prompt windows to run nuget.exe and use the command line to install the packages that you want. The detailed command line for nuget, please refer to:

https://docs.nuget.org/consume/command-line-reference

Sign up to request clarification or add additional context in comments.

1 Comment

Doc page where the download link from the answer can be found is e.g. learn.microsoft.com/en-us/nuget/install-nuget-client-tools
0

Or just download the file on nuget.org, rename the nupkg to .zip and voila.

The way the code is supposed to be distributed. Unmanaged and portable.

Comments

-1

If you're on windows, you can install using the command:

winget install --source winget --id Microsoft.NuGet 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.