Reputation: 521
Currently MSBuild is not copying over files w/ the .manifest extension to my build drop folder. I've added commands to explicitly copy over the file, but is there a config flag that I can set so that .manifest files are included?
Upvotes: 11
Views: 6847
Reputation: 26769
You can pass the AllowedReferenceRelatedFileExtensions
property to your build. The property's value should be a semi-colon separated list of file extensions. From Microsoft.Common.targets
:
<!--
These are the extensions that reference resolution will consider when looking for files related
to resolved references. Add new extensions here if you want to add new file types to consider.
-->
<AllowedReferenceRelatedFileExtensions Condition=" '$(AllowedReferenceRelatedFileExtensions)' == '' ">
.pdb;
.xml
</AllowedReferenceRelatedFileExtensions>
There is no way to add values to the list. You can only supply the whole list, so make sure you include the defaults, e.g.,
MSBuild.exe MyProject.csproj /t:build "/p:AllowedReferenceRelatedFileExtensions=.pdb;.xml;.manifest"
Upvotes: 16