Skip to content

Instantly share code, notes, and snippets.

@KevM
Created January 19, 2012 23:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KevM/1643659 to your computer and use it in GitHub Desktop.
Save KevM/1643659 to your computer and use it in GitHub Desktop.
Nuget configuraiton of package sources.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
<packageSources>
<add key="myrepo" value="\\server\\share\\path" />
</packageSources>
</configuration>
@ferventcoder
Copy link

try the nuget.targets in the .nuget folder for specifying custom feeds with Enable Package Restore

<!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
 <PackageSources>http://www.myget.org/F/customfeed/</PackageSources>

@KevM
Copy link
Author

KevM commented Jan 20, 2012

The answer for now was to move the package source configuration over to Nuget.targets as Rob suggests.

Note I need to add both the local and the official nuget package source for my scenario.

        <!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
        <PackageSources>"c:\Program Files\Dovetail Software\fcSDK";"http://go.microsoft.com/fwlink/?LinkID=206669"</PackageSources>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment