简体   繁体   English

Visual Studio使用XSLT自动生成XML文档

[英]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.

相关问题 是否可以在没有“生成XML文档文件”的情况下自动创建XML注释标记(仅限VB.NET)? - Is it possible for Visual Studio 2008 Automatically create XML Comments tags without “Generate XML documentation file” checked (VB.NET only)? 我们可以在 Visual Studio 中选择性地生成 XML 文档吗? - Can we selectively generate XML documentation in Visual Studio? 在Visual Studio中为typescript生成文档注释 - Generate documentation comments for typescript in Visual Studio 使用Visual Studio的XSLT将XML转换为XML - XML to XML with XSLT using Visual Studio 从不使用Visual Studio的代码内XML文档生成C#文档输出? - Generate C# docs output from in-code XML documentation without Visual Studio? 用于 Xml 文档中 cref 的 Visual Studio Intellisense - Visual Studio Intellisense for cref's in Xml Documentation 使用XSLT从SSRS / Visual Studio导出到XML - Export to XML from SSRS/Visual Studio with XSLT 在 Visual Studio 中自动生成 DLL .DEF 文件? - Automatically generate a DLL .DEF file in Visual Studio? 自动生成资源密钥以在Visual Studio中进行本地化 - Automatically generate resource keys for localisation in Visual Studio 如何在Visual Studio中自动生成接口的实现者? - How to automatically generate an implementor of an interface in Visual Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM