Hi guys,
I'm currently trying to use MSBuild to set up a project, and am having some issues with wildcards.
I'm trying to use the following snippet:
<Project ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Xsd Include="App_Data\*.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>%(Xsd.Filename).Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</Xsd>
<Xss Include="App_Data\*.xss">
<DependentUpon>%(Xss.Filename).xsd</DependentUpon>
</Xss>
<Xsc Include="App_Data\*.xsc">
<DependentUpon>%(Xsc.Filename).xsd</DependentUpon>
</Xsc>
</ItemGroup>
<Target Name="PrintMetaData">
<Message Text="@(Xss->'%(DependentUpon)')"/>
</Target>
</Project>
using the 3.5 version of MSBuild I get the following output:
".xsd;.xsd;.xsd;.....etc.xsd;"
using the 4.0 version of MSBuild I get the expected result: a list of the filenames.
Does anyone know if this is a known issue with a workaround, or if there's a patch for MSBuild I'm missing?
Thanks!