-
Notifications
You must be signed in to change notification settings - Fork 0
How to Configure
Vitaly Bibikov edited this page Oct 10, 2017
·
7 revisions
Find the NuGet.config file located under C:\Program Files (x86)\NuGet\Config (For new versions, starting from VS 2017 and Nuget 4)
1 Add to "packageSources"
2 Add to "packageSourceCredentials" new section named "ExchangeNugetServerPackages"
3 Add the key to this section
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="Microsoft Visual Studio Offline Packages" value="C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\"/>
<add key="ExchangeNugetServerPackages" value="http://exchangenugetserver.azurewebsites.net/nuget" />
</packageSources>
<packageSourceCredentials>
<ExchangeNugetServerPackages>
<add key="anythingyouwanthere" value="yoursecurekey" />
</ExchangeNugetServerPackages>
</packageSourceCredentials>
</configuration>
nuget.exe push -Source {NuGet package source URL} -ApiKey key {your_package}.nupkg