Skip to content

Commit 83f98b7

Browse files
authored
Update readme link (#9358)
* update reference link
1 parent 6f0bd1e commit 83f98b7

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/NuGetGallery/Strings.Designer.cs

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/NuGetGallery/Strings.resx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,10 +539,10 @@ For more information, please contact '{2}'.</value>
539539
<value>The Documentation URL must be a raw Markdown file hosted on GitHub.</value>
540540
</data>
541541
<data name="UploadPackage_MissingReadmeHtml" xml:space="preserve">
542-
<value>&lt;strong&gt;Readme&lt;/strong&gt; missing.&lt;a href="https://learn.microsoft.com/nuget/create-packages/package-authoring-best-practices#readme"&gt; See how to include a readme file within the package&lt;/a&gt;, or add it as you upload.</value>
542+
<value>&lt;strong&gt;Readme&lt;/strong&gt; missing.&lt;a href="https://aka.ms/nuget-include-readme"&gt; See how to include a readme file within the package&lt;/a&gt;, or add it as you upload.</value>
543543
</data>
544544
<data name="UploadPackage_MissingReadme" xml:space="preserve">
545-
<value>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.</value>
545+
<value>Readme missing. Go to https://aka.ms/nuget-include-readme learn How to include a readme file within the package.</value>
546546
</data>
547547
<data name="ReservedNamespace_OwnerAdded" xml:space="preserve">
548548
<value>The user '{0}' is now an owner of the prefix '{1}'.</value>

tests/NuGetGallery.Facts/Services/PackageMetadataValidationServiceFacts.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,8 +1500,8 @@ public async Task WarnsAboutPackagesWithoutReadmeWhenDisplayUploadWarningV2Enabl
15001500
Assert.Null(result.Message);
15011501
var warning = Assert.Single(result.Warnings);
15021502
Assert.IsType<UploadPackageMissingReadme>(warning);
1503-
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);
1504-
Assert.StartsWith("<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.", warning.RawHtmlMessage);
1503+
Assert.StartsWith("Readme missing. Go to https://aka.ms/nuget-include-readme learn How to include a readme file within the package.", warning.PlainTextMessage);
1504+
Assert.StartsWith("<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.", warning.RawHtmlMessage);
15051505
}
15061506

15071507
[Fact]
@@ -1527,8 +1527,8 @@ public async Task WarnsAboutPackagesWithoutWhenEmbeddedReadmeNotEnabledAndDispla
15271527
Assert.Null(result.Message);
15281528
var warning = Assert.Single(result.Warnings);
15291529
Assert.IsType<UploadPackageMissingReadme>(warning);
1530-
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);
1531-
Assert.StartsWith("<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.", warning.RawHtmlMessage);
1530+
Assert.StartsWith("Readme missing. Go to https://aka.ms/nuget-include-readme learn How to include a readme file within the package.", warning.PlainTextMessage);
1531+
Assert.StartsWith("<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.", warning.RawHtmlMessage);
15321532
}
15331533

15341534
private async Task<PackageValidationResult> ValidatePackageWithReadme(string readmePath, byte[] readmeFileData)

0 commit comments

Comments
 (0)