다음을 통해 공유


NuGet Offline Package

In this article let's see how we can use Nuget Packages when we are offline.

Create a project and Install a NuGet Package Online

Then right click on the project and click on "Open Folder in File Explore". 

Open folder named "Packages". Copy your desired .nupkg to your desired location (C drive or where ever you want your packages to be offline. Here the folder is created on C:\packages) inside the packages folder has a file repositories named XML Configuration file just delete it .

Open your Visual Studio then open Tools --> Nuget Package  Manager --> Package Manager Settings

Click Package Source Tab

Plus sign click Name (my name is Offline Package ) your own and Source Select Where is Your Offline Package(my  C:\packages) and Update Click .

Your New Project Go To Install Nuget Package You can see Offline Package