diff options
author | Rob Mensching <rob@firegiant.com> | 2022-09-30 23:48:33 -0700 |
---|---|---|
committer | Rob Mensching <rob@firegiant.com> | 2022-10-03 12:29:27 -0700 |
commit | ed6593322d34ff0e655be9347f340d0cc96c0784 (patch) | |
tree | f74f8dfb4ca4212d160cffba64d46fc3c4cc3e76 /nuget.config | |
parent | bd05b603142673135ac66cdbc81a2ae3028cb37f (diff) | |
download | wix-ed6593322d34ff0e655be9347f340d0cc96c0784.tar.gz wix-ed6593322d34ff0e655be9347f340d0cc96c0784.tar.bz2 wix-ed6593322d34ff0e655be9347f340d0cc96c0784.zip |
Use packageSourceMapping to control source of NuGet packages
Contrary to common-sense, NuGet package sources are not ordered.
Thus, the existence of nuget_official.config is pointless as it was
an attempt to prefer already published .nupkgs over newly built
.nupkgs in post-GA builds.
Instead, NuGet introduced packageSourceMapping which is a more
powerful solution to address post-GA package resolution.
Diffstat (limited to 'nuget.config')
-rw-r--r-- | nuget.config | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nuget.config b/nuget.config index 2151ef89..34dfa486 100644 --- a/nuget.config +++ b/nuget.config | |||
@@ -7,6 +7,15 @@ | |||
7 | <clear /> | 7 | <clear /> |
8 | <add key="nuget" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> | 8 | <add key="nuget" value="https://api.nuget.org/v3/index.json" protocolVersion="3" /> |
9 | <add key="build" value="build\artifacts" /> | 9 | <add key="build" value="build\artifacts" /> |
10 | <!-- <add key="github" value="https://nuget.pkg.github.com/wixtoolset/UnifiedTest1/index.json" /> --> | ||
11 | </packageSources> | 10 | </packageSources> |
11 | |||
12 | <packageSourceMapping> | ||
13 | <packageSource key="nuget"> | ||
14 | <package pattern="*" /> | ||
15 | </packageSource> | ||
16 | <packageSource key="build"> | ||
17 | <package pattern="WixToolset.*" /> | ||
18 | <package pattern="WixBuildTools.*" /> | ||
19 | </packageSource> | ||
20 | </packageSourceMapping> | ||
12 | </configuration> | 21 | </configuration> |