How to download Nuget Packages Without Visual Studio
By FoxLearn 10/5/2024 3:11:28 AM 3.71K
How to download Nuget Packages Without Visual Studio?
1. Using NuGet CLI
First, You need to download the nuget.exe
file from the NuGet website.
Next, Place nuget.exe
in a directory that is included in your system’s PATH environment variable for easy access.
You can press Win + R
, type cmd
, and hit Enter, then use the following command to download a package
nuget install <PackageID> -Version <VersionNumber> -OutputDirectory <PathToOutputDirectory>
Replace <PackageID>
with the name of the package you want to download, <VersionNumber>
with the version, and <PathToOutputDirectory>
with the path where you want to save the package.
2. Download directly from NuGet.org
Go to nuget.org, then find the package you want to download.
Next, Click on the package name to open its details page.
On the package page, scroll down to the "Download" section and click on the version number you want.
This will download the .nupkg
file to your local machine. You need to rename the .nupkg
file to .zip
and extract it if you want to view the contents.
VIDEO TUTORIAL