Skip to content

Commit ec22eac

Browse files
committed
Use internal NuGet feed for all internal preview builds (#7037)
1 parent abdae17 commit ec22eac

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

eng/update-dependencies/NuGetConfigUpdater.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private static string ToStringWithDeclaration(XDocument doc)
9292
private void UpdatePackageSourceCredentials(DotNetVersion sdkVersion, string pkgSrcName, XElement configuration)
9393
{
9494
XElement? pkgSourceCreds = configuration.Element("packageSourceCredentials");
95-
if (_options.IsInternal && !sdkVersion.IsPublicPreview)
95+
if (_options.IsInternal)
9696
{
9797
pkgSourceCreds = GetOrCreateXObject(
9898
pkgSourceCreds,
@@ -123,13 +123,10 @@ private void UpdatePackageSources(DotNetVersion sdkVersion, string pkgSrcName, X
123123
createNode: () => new XElement("packageSources")
124124
);
125125

126-
// Public preview versions have builds and NuGet feeds in the public prior to release.
127-
string project = sdkVersion.IsPublicPreview ? "public" : "internal";
128-
129126
UpdateAddElement(
130127
parentElement: pkgSources,
131128
key: pkgSrcName,
132-
value: $"https://pkgs.dev.azure.com/dnceng/{project}/_packaging/{sdkVersion}-shipping/nuget/v3/index.json"
129+
value: $"https://pkgs.dev.azure.com/dnceng/internal/_packaging/{sdkVersion}-shipping/nuget/v3/index.json"
133130
);
134131
}
135132
else

0 commit comments

Comments
 (0)