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