How can I use MSBuild to delete all xml files, with the exception of those whose file names end in a certain manner? -
i have build target called cleanup
responsible deleting files not required part of deployment of build.
the step looks this:
<target name="cleanup"> <message text="=== deleting unrequired files ===" /> <delete files="@(deletefrombuild)"/> </target>
my deletefrombuild
item group contains line:
<deletefrombuild include="**\*.xml" exclude="**\*.recipe.xml;**\*.newrelic.xml;**\*performancecounters.xml"/>
i delete xml files build, except end either .recipe.xml
, .newrelic.xml
, or .performancecounters.xml
. unfortunately, xml files being removed. doing wrong?
Comments
Post a Comment