Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
DefaultPushSource in NuGetDefaults.config (ProgramData\NuGet) doesn't work #2653
I always get the error message
<?xml version="1.0" encoding="UTF-8"?> <configuration> <config> <add key="DefaultPushSource" value="https://api.nuget.org/v3/index.json" /> </config> </configuration>
According to the documentation, this should work...
EDIT: I'm using NuGet 3.4.3.
added a commit
Apr 25, 2016
referenced this issue
Apr 25, 2016
This is a regression from 3.3.0
It just doesn't read the %ProgramData%\NuGet\NuGetDefaults.Config
This has just broken all our build servers as we do a
@yishaigalatzer I think he is referring to sources, we load sources from nugetDefault.config in 3.3, but doesn't do that in 3.4. This is regression from 3.3, but 3.3 has another issue: writing sources from nugetDefault.Config to local nuget.config during saving package sources.
@yishaigalatzer as @zhili1208 said 3.3 does not load
Not loading this file causes all default settings to be not load for :
<?xml version="1.0" encoding="UTF-8"?> <configuration> <!-- DefaultPushSource key is similar to the 'DefaultPushSource' key of NuGet.config schema--> <!-- This can be used by administrators to prevent accidental publishing of packages to nuget.org --> <config> <add key="DefaultPushSource" value="http://localnuget.company.local:81/nuget/company/" /> </config> <!-- Default Package Sources --> <!-- They cannot be deleted or modified but can be disabled/enabled by user --> <!-- The following section is similar to 'packageSources' section of NuGet.config schema --> <packageSources> <add key="nuget.org -cached (localnuget)" value="http://localnuget.company.local:81/nuget/nuget.org" /> <add key="companyShared Libraries (localnuget)" value="http://localnuget.company.local:81/nuget/company" /> <add key="Microsoft and .NET -cached (localnuget)" value="http://localnuget.company.local:81/nuget/nuget.org.microsoft" /> </packageSources> <!-- Default Package Sources that are Disabled by Default --> <!-- They cannot be modified or deleted either but can be enabled/disabled by user --> <!-- The following section is similar to 'disabledPackageSources' section of NuGet.config schema --> <!-- The value part of the entry in 'disabledPackageSources' section has no effect --> <disabledPackageSources> </disabledPackageSources> </configuration>
Anything else you need?