From ed6593322d34ff0e655be9347f340d0cc96c0784 Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Fri, 30 Sep 2022 23:48:33 -0700 Subject: 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. --- nuget.config | 11 ++++++++++- src/Directory.Build.props | 2 +- src/build_official.cmd | 2 -- src/nuget_official.config | 12 ------------ 4 files changed, 11 insertions(+), 16 deletions(-) delete mode 100644 src/nuget_official.config diff --git a/nuget.config b/nuget.config index 2151ef89..34dfa486 100644 --- a/nuget.config +++ b/nuget.config @@ -7,6 +7,15 @@ - + + + + + + + + + + diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 8e013300..90de177c 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -6,7 +6,7 @@ Debug false true - $(NoWarn);NU1507;MSB3026 + $(NoWarn);MSB3026 $(MSBuildProjectName) $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\build\)) diff --git a/src/build_official.cmd b/src/build_official.cmd index 63566260..56c2a708 100644 --- a/src/build_official.cmd +++ b/src/build_official.cmd @@ -1,8 +1,6 @@ @setlocal @pushd %~dp0 -@copy nuget_official.config ..\nuget.config - build_all.cmd Release Official @popd diff --git a/src/nuget_official.config b/src/nuget_official.config deleted file mode 100644 index 25adbeed..00000000 --- a/src/nuget_official.config +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - -- cgit v1.2.3-55-g6feb