Visual Studio 对象浏览器忽略 XML 注释格式

发布于 2024-08-23 00:48:05 字数 318 浏览 3 评论 0原文

在关于方法和类的 .NET XML 注释中,我尝试在 块中提供使用示例。当我使用 Sandcastle 使用 XML 文档生成 .chm 文档文件时,它的格式始终很好,并且遵循 块中的换行符。但是,当我在 Visual Studio 的对象浏览器中浏览类和方法时,所有内容都在一行中一起运行,并且字体全部相同(代码没有等宽字体)。这是因为我在 XML 注释中没有执行某些操作,还是对象浏览器只是愚蠢的?我专门使用 Visual Studio 2008 Team System。

In my .NET XML comments on methods and classes, I try to provide usage examples in <example><code></code></example> blocks. When I use Sandcastle to generate a .chm documentation file using my XML documentation, it's always formatted nicely and respects the newlines in my <code> blocks. However, when I browse the classes and methods in Visual Studio's Object Browser, everything runs together in one line and the font is all the same (no monospace for code). Is this due to something I'm failing to do in my XML comments, or is the Object Browser just dumb? I'm specifically using Visual Studio 2008 Team System.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半枫 2024-08-30 00:48:05

哈!面临同样的问题。我“google”了一下,发现这是“knowing bug”,vs2010团队承诺在下一个版本(服务包?)中解决这个问题。

Huh! Faced the same problem. I have "googled" it and found that it is "knowing bug" and team of vs2010 promised to solve this problem in next versions (service packs?).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文