![](/img/trans.png)
[英]Creating TestBuild and Release Build in Visual Studio 2015
[英]How do I stop Visual Studio from creating XML Documentation files in a Release build?
当我在Release
模式下构建我的应用程序时,我的文件夹中充斥着 .xml 文件,有没有办法阻止它?
如果它是一个 VB.Net 项目,在项目设置 -> 编译下有一个名为“生成 XML 文档文件”的复选框。 如果它是 C# 项目,它位于项目设置 -> 构建 XML 文档文件下,您可以在其中指定自己的路径。
请记住,intellisense 使用这些为您提供摘要、paramref 和其他提示,这些提示是您作为 xml 文档放在函数上的。
编辑您的csproj
文件以在发布构建定义中包含AllowedReferenceRelatedFileExtensions
标记
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<AllowedReferenceRelatedFileExtensions>
<!-- Prevent default XML documentation files to be copied to output-->
.pdb
</AllowedReferenceRelatedFileExtensions>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.