2009-10-31 2 views
0

출력에 나타나는 항목을 버킷 화하기 위해 사용중인 메타 데이터 값없이 MSBuild에서 일괄 처리 할 수 ​​있습니까? 나는 MyBatch 목표를 실행하는 경우일괄 처리에 사용 된 메타 데이터 값을 포함하지 않는 MSBuild 일괄 처리

<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> 

, 나는이 출력을 얻을 :

의 내가 다음 .proj있어 말을하자

Item1;Item3 in bucket 1 
    Item2;Item4 in bucket 2 

내가 부탁 해요 것은 어떻게 배치에 "bucketizer"가 실제로 출력물에 나타나지 않고 다음과 같은 결과를 얻을 수 있습니다.

Item1;Item3 is a batch 
    Item2;Item4 is a batch 

이 가능성은 있습니까? 이자형? 어디에서 %()를 넣을 것인가? 아니면 이것을 달성하는 데 필요한 것은 무엇입니까?

답변

0

이 작업을 수행 할 수 없습니다. 너 뭐하려고?

+0

특히 더 이상 학문적 인 질문이 아니 었습니다. 사실, 나는 당신의 책을 통해 나아가고 있으며, 훌륭합니다. 감사! – nlawalker