简体   繁体   English

将 NuGet package 推送到 nuget.org 时,如何发布文档?

[英]How can I publish documentation when pushing a NuGet package to nuget.org?

I'm building a Blazor component and want to automate the build process.我正在构建一个 Blazor 组件并希望自动化构建过程。 Currently the package builds properly and is pushed to nuget.org with its proper license and icon files but I can't find anywhere how to include docs.目前 package 构建正确,并被推送到nuget.org及其适当的许可证和图标文件,但我无法找到任何地方如何包含文档。 I have to manually sign in to nuget.org and update the docs to point to the same github readme link.我必须手动登录nuget.org并更新文档以指向相同的 github 自述文件链接。

Is there any way to automate this process?有没有办法自动化这个过程?

The feature is only for nuget.org website and is not a part of nuget cli now.该功能仅适用于nuget.org网站,现在不是 nuget cli 的一部分。 And you are not the only one who wants to reflect this problem.你不是唯一一个想反映这个问题的人。

There is a similar github link .一个类似的 github 链接

After feedback from many users, the Team is working hard to add this feature to nuget cli.收到许多用户的反馈后,团队正在努力将此功能添加到 nuget cli 中。 You can follow this link to keep track of the progress.您可以点击此链接以跟踪进度。

All the data for your package should be included inside the library project (Properties). package 的所有数据都应包含在库项目(属性)中。 Once you build the library and upload to Nuget, the links, descriptions and everything else will be displayed when someone searched for your package and previews on visual studio or on Nuget.构建库并上传到 Nuget 后,当有人搜索您的 package 并在 Visual Studio 或 ZE0A9608C9CC2A525101621A364ZDFD2D 上进行预览时,将显示链接、描述和其他所有内容。

Take a look here, you will see where to find everything: https://youtu.be/FTnua-kh-bY看看这里,你会看到在哪里可以找到所有东西: https://youtu.be/FTnua-kh-bY

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM