在项目.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

相关文章:

  • 2022-02-24
  • 2022-01-01
  • 2021-08-23
  • 2021-10-27
  • 2022-12-23
  • 2021-06-06
  • 2021-05-24
  • 2021-09-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-04
相关资源
相似解决方案