I am trying to publish a .NET web service using Web Deploy. It currently includes XML documentation files in a package. I unchecked the "XML Documentation File" on the Assembly tab of the project properties in Visual Studio. This stops publishing the XML file, but the project refers to a series of user libraries that have XML documentation.
Obviously, we do not want to disable documentation for our custom libraries. There is also no reason to deploy these XML files.
From the msdeploy / msbuild command line or from project properties, how can I prevent the inclusion of XML documentation files in a package and subsequent deployment on the Internet?
Update
I tried adding DEL /Q "$(TargetDir)*.xml"Pre- and Post-build to events without success. XML files are still being added to the package.
source
share