[英]Visual Studio Automatically generate XML Documentation with XSLT
I have VS.Net set to automatically generate an XML with the XMLDoc comments in my code on build. 我将VS.Net设置为在生成的代码中使用XMLDoc注释自动生成XML。 This is done through the build properties of the project.
这是通过项目的构建属性完成的。 I also have an XSLT to style the XML.
我也有一个XSLT来样式化XML。
Is there a way to have VS append the xml-stylesheet to the file upon generating? 有没有一种方法让VS在生成时将xml-stylesheet附加到文件中?
You should be able to use the System.IO object. 您应该能够使用System.IO对象。 Look at StreamReader and StreamWriter in particular, but possibly also File (which has a .Append Function).
特别要看StreamReader和StreamWriter,但也可以看一下File(具有.Append函数)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.