【问题标题】:Visual Studio Automatically generate XML Documentation with XSLTVisual Studio 使用 XSLT 自动生成 XML 文档
【发布时间】:2012-05-23 02:12:22
【问题描述】:

我已将 VS.Net 设置为在构建时使用我的代码中的 XMLDoc cmets 自动生成 XML。这是通过项目的构建属性完成的。我还有一个 XSLT 来设置 XML 的样式。

有没有办法让 VS 在生成时将 xml-stylesheet 附加到文件中?

【问题讨论】:

    标签: visual-studio xslt documentation xmldocument


    【解决方案1】:

    您应该能够使用 System.IO 对象。尤其是 StreamReader 和 StreamWriter,但也可能是 File(它有一个 .Append 函数)。

    【讨论】:

    • 对于任何误解,我深表歉意。我不是在编写编写 xml 的应用程序。在 Visual Studio 中构建项目时,有一个标志会自动从代码中的任何 XMLDoc cmets 生成 XML。
    • 哦,对不起...我误会了。很遗憾,我不知道您的问题的答案。
    猜你喜欢
    • 2010-10-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-11-10
    • 2017-05-09
    • 2020-03-27
    • 1970-01-01
    • 2011-02-14
    相关资源
    最近更新 更多