-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3296 from AshleighAdams/nuget-config-disable-pkg-src
Add support for disablePackageSources in NuGet.Config
- Loading branch information
Showing
3 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<config> | ||
<!-- | ||
Used to specify the default location to expand packages. | ||
See: nuget.exe help install | ||
See: nuget.exe help update | ||
In this example, %PACKAGEHOME% is an environment variable. On Mac/Linux, | ||
use $PACKAGE_HOME/External as the value. | ||
--> | ||
<add key="repositoryPath" value="%PACKAGEHOME%\External" /> | ||
|
||
<!-- | ||
Used to specify default source for the push command. | ||
See: nuget.exe help push | ||
--> | ||
|
||
<add key="defaultPushSource" value="https://MyRepo/ES/api/v2/package" /> | ||
|
||
<!-- Proxy settings --> | ||
<add key="http_proxy" value="host" /> | ||
<add key="http_proxy.user" value="username" /> | ||
<add key="http_proxy.password" value="encrypted_password" /> | ||
</config> | ||
|
||
<packageRestore> | ||
<!-- Allow NuGet to download missing packages --> | ||
<add key="enabled" value="True" /> | ||
|
||
<!-- Automatically check for missing packages during build in Visual Studio --> | ||
<add key="automatic" value="True" /> | ||
</packageRestore> | ||
|
||
<!-- | ||
Used to specify the default Sources for list, install and update. | ||
See: nuget.exe help list | ||
See: nuget.exe help install | ||
See: nuget.exe help update | ||
--> | ||
<packageSources> | ||
<clear /> | ||
<add key="MyRepo - ES" value="https://www.myget.org/F/exceptionless/api/v3/index.json" /> | ||
<add key="Local repo" value="lib" /> | ||
<add key="Some disabled source" value="https://disabled.example/api/v3/index.json" /> | ||
</packageSources> | ||
|
||
<!-- Used to store credentials --> | ||
<packageSourceCredentials> | ||
<MyRepo_x0020_-_x0020_ES> | ||
<add key="Username" value="my" /> | ||
<add key="ClearTextPassword" value="passw0rd" /> | ||
</Test_x0020_Source> | ||
</packageSourceCredentials> | ||
|
||
<!-- Used to disable package sources --> | ||
<disabledPackageSources> | ||
<add key="Some disabled source" value="true" /> | ||
<add key="missing source" value="true" /> | ||
<add key="MyRepo - ES" value="false" /> | ||
</disabledPackageSources> | ||
|
||
<!-- | ||
Used to specify default API key associated with sources. | ||
See: nuget.exe help setApiKey | ||
See: nuget.exe help push | ||
See: nuget.exe help mirror | ||
--> | ||
<apikeys> | ||
<add key="https://MyRepo/ES/api/v2/package" value="encrypted_api_key" /> | ||
</apikeys> | ||
</configuration> |