将降价文档推送到 NuGet.org

Push markdown documentation to NuGet.org

几个月前它是 announced that NuGet supports markdown 文档。

我使用 Appveyor 的部署功能将包发布到 NuGet。由于发布包已经是自动化的,我正在寻找一种方法来自动设置 markdown 文档。

我打包的仓库已经有了README.md。有没有办法自动将 md 文件与包一起推送到 NuGet?

我想避免在推送后手动编辑包以添加降价文档。

多亏了 Stack overflow post NuGet 提供了此功能,了解一下 here

您可以将其包含在文档标签中: <documentation src="documentation.md" />

上个月(2021 年 5 月)NuGet 团队宣布:

将自述文件添加到您的 NuGet 程序包

来自 post 的一些头灯:

This new capability is still in preview with support starting in .NET SDK 5.0.300 preview, NuGet 5.10 preview 2, and Visual Studio 16.10 preview 2. The easiest way to try this feature today is to install the latest .NET 6 preview or the latest Visual Studio preview.

If you already have a README.md file, including it in your package is as easy as adding a couple lines to your project file for SDK-style projects or nuspec for non-SDK-style projects. If you are new to creating NuGet packages, we recommend going with an SDK-style project.