From 2cd9e386fed3969150c0f27b10a2ee4d399d3f80 Mon Sep 17 00:00:00 2001 From: erwan-joly Date: Fri, 24 Apr 2026 15:20:48 +1200 Subject: [PATCH] chore: support local NuGet source via NOSCORE_LOCAL_PACKAGES env var Move the wiring out of NuGet.config (where %NOSCORE_LOCAL_PACKAGES% fails NU1301 when unset) into a conditional Directory.Build.props PropertyGroup. RestoreAdditionalProjectSources is only set when the env var is defined, so CI and fresh clones are unaffected. Co-Authored-By: Claude Opus 4.7 (1M context) --- Directory.Build.props | 5 +++++ NuGet.config | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 Directory.Build.props diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..c985bc8 --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,5 @@ + + + $(RestoreAdditionalProjectSources);$(NOSCORE_LOCAL_PACKAGES) + + diff --git a/NuGet.config b/NuGet.config index edec104..316ad79 100644 --- a/NuGet.config +++ b/NuGet.config @@ -1,7 +1,6 @@ - - \ No newline at end of file +