0
MSBuild是否可以在没有使用元数据值来批处理输出中出现的项目的情况下批处理任务?不包含用于批处理的元数据值的MSBuild批处理任务
比方说,我有以下.proj:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ExampColl Include="Item1">
<Bucket>1</Bucket>
</ExampColl>
<ExampColl Include="Item2">
<Bucket>2</Bucket>
</ExampColl>
<ExampColl Include="Item3">
<Bucket>1</Bucket>
</ExampColl>
<ExampColl Include="Item4">
<Bucket>2</Bucket>
</ExampColl>
</ItemGroup>
<Target Name="MyBatch">
<Message Text="@(ExampColl) in bucket %(Bucket)">
</Message>
</Target>
</Project>
如果我运行MyBatch目标,我得到这样的输出:
Item1;Item3 in bucket 1
Item2;Item4 in bucket 2
什么我问的是如何批像这样没有“bucketizer”实际上出现在输出中,以得到像这样的输出:
Item1;Item3 is a batch
Item2;Item4 is a batch
这是可能性è?我会在哪里放置%()或其他任何需要完成的工作?
没有什么特别的,它更像是一个学术问题。事实上,我正在通读你的书,这很好。谢谢! – nlawalker 2009-10-31 18:30:45