可以在 nuget 包中包含 XML 文档(C#)吗?

发布于 2025-01-19 22:34:57 字数 204 浏览 4 评论 0原文

我们目前正在创建一个“自动 API 自我文档”系统,该系统要求我们包含库中的 XML 文档(我们也将所有模型放入 nuget 包中,以便每个开发人员都可以使用相同的模型)。

XML 文档文件生成就像一个魅力,但是当引用 nuget 包时,库的 XML 文件不会放入实际服务的 /bin 目录中。

强制 nuget 包为每个 .dll 安装 .xml 文件需要什么?

We're currently creating an "automatic API self documentation" system which requires us to include the XML documentation from libraries (we put all our models into nuget packages as well, so every developer can use the same).

XML documentation file generation works like a charm, but when referencing the nuget packages, the XML files of the libraries are not put into the /bin directory of the actual service.

What is necessary to force nuget packages to also install the .xml-files for each .dll?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文