By default NuGet packages gets downloaded from the public feed of Nuget Package Source ( https://api.nuget.org/ ). However, there couldĀ be some scenarios, where you want to use some of your companyās internal NuGet Packages or some prerelease version of package. If you search themĀ by just using adding nuget package, you wonāt be able to get them. In these case, you need set up a custom NuGet source in Visual Studio.
Here is how you can create local Nuget source. First of all, Click on the āManage Nuget Packagesā from the Project Add Reference context menu.
By default, theĀ NuGet Package Manager window will refer to the all package source located at āNuget.Orgā as shown in image below.
To Configure the local resource, click on the āSettingsā icon.Ā This will bring the āOptionsā dialog windows.
Navigate to āNuget Package Managerā ā>Ā āPackage Sourcesā
There you will only find the default reference to the nuget.org.
Now, Click on the āAddā / + Icon. to add a new source and click on the Update and Ok.
Now, again go back to Nuget Package Manager and then select the āNew Sourceā as a local source for your local nuget packages.
Incase, there is any āPre releaseā version of packages you want to search, you can select the āInclude prereleaseā check box.
Here after, if you search, it will always search packages from your local Nuget Feeds.
If you are using āPackage Manager Consoleā make sure you are also referring the the customize source for the package reference.
Hope this helps . Refer to this article for further information
Pingback: Visual Studio ā Developer Top Ten for Nov 2nd, 2015 - Dmitry Lyalin
Pingback: Compelling Sunday ā 23 Posts on Programming and QA
Pingback: Using Application Insights for your iOS Apps – with Visual Studio 2015