MSBuild CreateItem condition include based on config file

Posted by Mac on Stack Overflow See other posts from Stack Overflow or by Mac
Published on 2010-04-11T13:10:04Z Indexed on 2010/04/11 13:13 UTC
Read the original article Hit count: 255

Filed under:
|

I'm trying to select a list of test dlls that contain corresponding config files

MyTest.Tests.dll
MyTest.Tests.config

I have to use a createItem as the dlls are not available at the time of the script loading

<CreateItem Include="$(AssemblyFolder)\*.Tests.dll"
            Condition="???"
  <Output TaskParameter="Include" ItemName="TestBinariesWithConfig"/>
</CreateItem>

Is there a condition I can use or is this the wrong approach?

Thanks
Mac

© Stack Overflow or respective owner

Related posts about msbuild

Related posts about createitem