0
我有這樣的任務:不需要的項目名稱壓扁
<ItemGroup>
<Folder Include="d:\Trunk">
<BranchName>MyBranch</BranchName>
</Folder>
<Folder Include="d:\8.1">
<BranchName>MyBranch</BranchName>
</Folder>
</ItemGroup>
<Message Text="BranchName: %(Folder.BranchName), Folder: @(Folder)" />
我所期待:
BranchName: MyBranch, Folder: d:\Trunk
BranchName: MyBranch, Folder: d:\8.1
我已經有了:
BranchName: MyBranch, Folder: d:\Trunk;d:\8.1
我知道壓扁項目標識是MSBuild的一項功能。但是擺脫這一點是否可行?按MetaData值拼合項目沒有任何意義...
酷,它的作品!謝了哥們 –