I am looking how to exclude multiple files with a wildcard match in MSBuild settings XML for YUI Compressor for .NET
Currently I have this:
Exclude="$(ProjectDir)../../Scripts/plugins/*.min.js"
But also want to exclude files that match:
*-vsdoc.js
How should this extra wild card pattern be added to the Exclude attribute?
The full XML currently looks like this:
<ItemGroup>
...
<JavaScriptFiles Include="$(ProjectDir)../../Scripts/plugins/*.js" Exclude="$(ProjectDir)../../Scripts/plugins/*.min.js" />
...
</ItemGroup>
I found the solution… So I’ll answer this one myself.
To have multiple exclude rules you use ‘;‘ as a delimiter.