Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions eng/update-dependencies/NuGetConfigUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down