How to exclude xml doc files from msbuild

You can also specify this via the command line:

MsBuild.exe build.file /p:AllowedReferenceRelatedFileExtensions=none

You can edit your csproj in notepad and add the section <AllowedReferenceRelatedFileExtensions > within the <PropertyGroup >of the desired configuration (I didn't managed to do it in visual studio csproj properties windows...)
For exemple if you add .pdb in this section, only .pdb files will be copied in bin folder. I set it to .none to have only assemblies in my deployment

Tags:

Xml

Msbuild