vs2017 项目生成时不产生xml文件的方法


在项目.csproj文件

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">

</PropertyGroup>

节点中加入元素节点AllowedReferenceRelatedFileExtensions。

<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<AllowedReferenceRelatedFileExtensions>
<!-- 阻止默认的 XML 和 PDB 文件复制到 RELEASE 的输出目录.
只有*.allowedextension 扩展名的文件可以被包含, 当然这个扩展的文件并不存在.
-->
.allowedextension
</AllowedReferenceRelatedFileExtensions>
</PropertyGroup>

 

转自:http://www.codebye.com/c-winform-output-remove-xml-pdb-files.html


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM