如何使用空格而不是分号分隔msbuild ItemGroup项?
观察msbuild脚本的以下部分:如何使用空格而不是分号分隔msbuild ItemGroup项?,msbuild,Msbuild,观察msbuild脚本的以下部分: <ItemGroup> <R Include="-Microsoft.Design#CA1000" /> <R Include="-Microsoft.Design#CA1002" /> </ItemGroup> 但是,我不喜欢这样,因为实际上我有很多规则要禁用,我希望避免这样列出所有规则。要使用分号以外的字符分隔每个项目,请使用语法@(myType,'separator') <Propert
<ItemGroup>
<R Include="-Microsoft.Design#CA1000" />
<R Include="-Microsoft.Design#CA1002" />
</ItemGroup>
但是,我不喜欢这样,因为实际上我有很多规则要禁用,我希望避免这样列出所有规则。要使用分号以外的字符分隔每个项目,请使用语法
@(myType,'separator')
<PropertyGroup>
<R>/ruleid:-Microsoft.Design#CA1000 /ruleid:-Microsoft.Design#CA1002</R
</PropertyGroup>
<ItemGroup>
<R Include="-Microsoft.Design#CA1000" />
<R Include="-Microsoft.Design#CA1002" />
</ItemGroup>
<Target Name="FxcopRulesFlattening">
<!-- Using the syntax @(ItemName, 'Separator')-->
<Message Text="@(R -> '/ruleid:%(Identity)', ' ')"/>
</Target>