disableSourceControlIntegration

Jan 31, 2012 at 5:03 PM

I recently discovered <add key="disableSourceControlIntegration" value="true" /> inside of the config that NuGet Package Restore creates.

I tried adding this to my global NuGet config in %APPDATA%\NuGet\Nuget.config but it doesn't seem to be working.

What's the proper usage of this setting?

Developer
Jan 31, 2012 at 5:09 PM

The setting is per-solution and needs to be stored in a nuget.config under a .nuget directory of the solution root.

Jan 31, 2012 at 9:05 PM

Sad face.

For my organization I don't want packages checked into source control ever. So we're constantly fighting with removing the packages folder anytime we touch the UI.

Any workarounds or hacks that I can use to accomplish this? (Not including mass importing nuget.config files at every .sln file)