How to not copy app.config file to output directory

后端 未结 2 613
不思量自难忘°
不思量自难忘° 2020-12-18 04:18

I have a WPF application I am building. I am using Visual Studio Community 2015. In an effort to create a \"true\" release build, I am changing up some build settings so i

2条回答
  •  粉色の甜心
    2020-12-18 04:42

    Add /p:AllowedReferenceRelatedFileExtensions=.pdb in the MSBuild parameters to suppress library project .config files, library xml docs, etc. With the above, only PDBs are retained.

    This parameter can also be added to csproj files, but personally I find it easier to manage as part of the build configuration.

提交回复
热议问题