Skip to content

How to Configure

Vitaly Bibikov edited this page Oct 10, 2017 · 7 revisions

Configure NuGet Sources

http://nugetserver.net/

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>

Push package

nuget.exe push -Source {NuGet package source URL} -ApiKey key {your_package}.nupkg

Clone this wiki locally