diff --git a/src/NuGetGallery/Strings.Designer.cs b/src/NuGetGallery/Strings.Designer.cs index 88df3599b4..eb6aaf6c4b 100644 --- a/src/NuGetGallery/Strings.Designer.cs +++ b/src/NuGetGallery/Strings.Designer.cs @@ -2058,7 +2058,7 @@ public static string SecurityPolicy_RequireMinProtocolVersionForPush { } /// - /// Looks up a localized string similar to You have not published a package with this prefix in the past. This means other users may be able to push packages starting with the same prefix. Contact account@nuget.org to reserve the prefix. Go to https://docs.microsoft.com/en-us/nuget/reference/id-prefix-reservation to learn more about Package ID prefix reservation.. + /// Looks up a localized string similar to You have not published a package with this prefix in the past. This means other users may be able to push packages starting with the same prefix. Contact account@nuget.org to reserve the prefix. Go to https://docs.microsoft.com/nuget/reference/id-prefix-reservation to learn more about Package ID prefix reservation.. /// public static string SecurityPolicy_RequirePackagePrefixReserved { get { @@ -2598,7 +2598,7 @@ public static string UploadPackage_IconUrlDeprecated { } /// - /// Looks up a localized string similar to This package ID has been reserved. Please request access to upload to this reserved namespace from the owner of the reserved prefix, or re-upload the package with a different ID. Go to https://docs.microsoft.com/en-us/nuget/reference/id-prefix-reservation learn more about Package ID prefix reservation.. + /// Looks up a localized string similar to This package ID has been reserved. Please request access to upload to this reserved namespace from the owner of the reserved prefix, or re-upload the package with a different ID. Go to https://docs.microsoft.com/nuget/reference/id-prefix-reservation learn more about Package ID prefix reservation.. /// public static string UploadPackage_IdNamespaceConflict { get { @@ -2607,7 +2607,7 @@ public static string UploadPackage_IdNamespaceConflict { } /// - /// Looks up a localized string similar to This package ID has been reserved. Please request access to upload to this reserved namespace from the owner of the reserved prefix, or re-upload the package with a different ID. <a href="https://docs.microsoft.com/en-us/nuget/reference/id-prefix-reservation">Learn more about Package ID prefix reservation</a>.. + /// Looks up a localized string similar to This package ID has been reserved. Please request access to upload to this reserved namespace from the owner of the reserved prefix, or re-upload the package with a different ID. <a href="https://docs.microsoft.com/nuget/reference/id-prefix-reservation">Learn more about Package ID prefix reservation</a>.. /// public static string UploadPackage_IdNamespaceConflictHtml { get { @@ -2841,7 +2841,7 @@ public static string UploadPackage_MissingLicenseInformation { } /// - /// Looks up a localized string similar to Readme missing. Go to https://learn.microsoft.com/en-us/nuget/create-packages/package-authoring-best-practices#readme learn How to include a readme file within the package.. + /// Looks up a localized string similar to Readme missing. Go to https://aka.ms/nuget-include-readme learn How to include a readme file within the package.. /// public static string UploadPackage_MissingReadme { get { @@ -2850,7 +2850,7 @@ public static string UploadPackage_MissingReadme { } /// - /// Looks up a localized string similar to <strong>Readme</strong> missing.<a href="https://learn.microsoft.com/en-us/nuget/create-packages/package-authoring-best-practices#readme"> See how to include a readme file within the package</a>, or add it as you upload.. + /// Looks up a localized string similar to <strong>Readme</strong> missing.<a href="https://aka.ms/nuget-include-readme"> See how to include a readme file within the package</a>, or add it as you upload.. /// public static string UploadPackage_MissingReadmeHtml { get { diff --git a/src/NuGetGallery/Strings.resx b/src/NuGetGallery/Strings.resx index aa5e645f3a..f515658d62 100644 --- a/src/NuGetGallery/Strings.resx +++ b/src/NuGetGallery/Strings.resx @@ -539,10 +539,10 @@ For more information, please contact '{2}'. The Documentation URL must be a raw Markdown file hosted on GitHub. - <strong>Readme</strong> missing.<a href="https://learn.microsoft.com/nuget/create-packages/package-authoring-best-practices#readme"> See how to include a readme file within the package</a>, or add it as you upload. + <strong>Readme</strong> missing.<a href="https://aka.ms/nuget-include-readme"> See how to include a readme file within the package</a>, or add it as you upload. - Readme missing. Go to https://learn.microsoft.com/nuget/create-packages/package-authoring-best-practices#readme learn How to include a readme file within the package. + Readme missing. Go to https://aka.ms/nuget-include-readme learn How to include a readme file within the package. The user '{0}' is now an owner of the prefix '{1}'. diff --git a/tests/NuGetGallery.Facts/Services/PackageMetadataValidationServiceFacts.cs b/tests/NuGetGallery.Facts/Services/PackageMetadataValidationServiceFacts.cs index 24599eb16e..fc483490fd 100644 --- a/tests/NuGetGallery.Facts/Services/PackageMetadataValidationServiceFacts.cs +++ b/tests/NuGetGallery.Facts/Services/PackageMetadataValidationServiceFacts.cs @@ -1500,8 +1500,8 @@ public async Task WarnsAboutPackagesWithoutReadmeWhenDisplayUploadWarningV2Enabl Assert.Null(result.Message); var warning = Assert.Single(result.Warnings); Assert.IsType(warning); - Assert.StartsWith("Readme missing. Go to https://learn.microsoft.com/nuget/create-packages/package-authoring-best-practices#readme learn How to include a readme file within the package.", warning.PlainTextMessage); - Assert.StartsWith("Readme missing. See how to include a readme file within the package, or add it as you upload.", warning.RawHtmlMessage); + Assert.StartsWith("Readme missing. Go to https://aka.ms/nuget-include-readme learn How to include a readme file within the package.", warning.PlainTextMessage); + Assert.StartsWith("Readme missing. See how to include a readme file within the package, or add it as you upload.", warning.RawHtmlMessage); } [Fact] @@ -1527,8 +1527,8 @@ public async Task WarnsAboutPackagesWithoutWhenEmbeddedReadmeNotEnabledAndDispla Assert.Null(result.Message); var warning = Assert.Single(result.Warnings); Assert.IsType(warning); - Assert.StartsWith("Readme missing. Go to https://learn.microsoft.com/nuget/create-packages/package-authoring-best-practices#readme learn How to include a readme file within the package.", warning.PlainTextMessage); - Assert.StartsWith("Readme missing. See how to include a readme file within the package, or add it as you upload.", warning.RawHtmlMessage); + Assert.StartsWith("Readme missing. Go to https://aka.ms/nuget-include-readme learn How to include a readme file within the package.", warning.PlainTextMessage); + Assert.StartsWith("Readme missing. See how to include a readme file within the package, or add it as you upload.", warning.RawHtmlMessage); } private async Task ValidatePackageWithReadme(string readmePath, byte[] readmeFileData)