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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -