From 3425cbd6e777494be65cb08db4ef715fd6c9e60d Mon Sep 17 00:00:00 2001 From: Logan Bussell Date: Mon, 9 Feb 2026 14:28:58 -0800 Subject: [PATCH] Use internal NuGet feed for all internal builds Internal builds can now use internal feeds regardless of preview status. Remove the IsPublicPreview conditional so all internal builds use the internal Azure DevOps feed and get credentials. --- eng/update-dependencies/NuGetConfigUpdater.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/eng/update-dependencies/NuGetConfigUpdater.cs b/eng/update-dependencies/NuGetConfigUpdater.cs index 7f4786749c..cc16f99bfa 100644 --- a/eng/update-dependencies/NuGetConfigUpdater.cs +++ b/eng/update-dependencies/NuGetConfigUpdater.cs @@ -92,7 +92,7 @@ private static string ToStringWithDeclaration(XDocument doc) private void UpdatePackageSourceCredentials(DotNetVersion sdkVersion, string pkgSrcName, XElement configuration) { XElement? pkgSourceCreds = configuration.Element("packageSourceCredentials"); - if (_options.IsInternal && !sdkVersion.IsPublicPreview) + if (_options.IsInternal) { pkgSourceCreds = GetOrCreateXObject( pkgSourceCreds, @@ -123,13 +123,10 @@ private void UpdatePackageSources(DotNetVersion sdkVersion, string pkgSrcName, X createNode: () => new XElement("packageSources") ); - // Public preview versions have builds and NuGet feeds in the public prior to release. - string project = sdkVersion.IsPublicPreview ? "public" : "internal"; - UpdateAddElement( parentElement: pkgSources, key: pkgSrcName, - value: $"https://pkgs.dev.azure.com/dnceng/{project}/_packaging/{sdkVersion}-shipping/nuget/v3/index.json" + value: $"https://pkgs.dev.azure.com/dnceng/internal/_packaging/{sdkVersion}-shipping/nuget/v3/index.json" ); } else