From 39af1e4b3fee9fedf4b10e2b7593312d486d2169 Mon Sep 17 00:00:00 2001 From: erwan-joly Date: Fri, 24 Apr 2026 15:23:17 +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 | 3 +++ NuGet.config | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index f8f875f..984be71 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -14,4 +14,7 @@ 0.0.1.0 0.0.1 + + $(RestoreAdditionalProjectSources);$(NOSCORE_LOCAL_PACKAGES) + \ No newline at end of file diff --git a/NuGet.config b/NuGet.config index ad95ba2..19850ff 100644 --- a/NuGet.config +++ b/NuGet.config @@ -2,7 +2,6 @@ - - \ No newline at end of file +