MsBuild Annoyances: Take 2

time to read 2 min | 227 words

I have put this in my project file:

<

ConfigFile Include="$(MSBuildProjectDirectory)\Bin\$(Configuration)\**\*.config"/>

After loading the project into VS.Net, it turned it into this:

<

ConfigFile Include="D:\Work\Tester\..\Configuration\FileStructure.config" />
<
ConfigFile Include="D:\Work\Tester\..\Configuration\Tasks.config" />

Even ignoring the fact that this is not recursive (and I have need of recursiveness there), this is annoying in the extreme. Any ideas how to make VS.Net ignore parts of the project and just hand them over to MsBuild to execute?