我有一个Property和一个ItemGroup,我需要将它们合并到一个具有1比1关系的Property中:
<PropertyGroup>
<Servers>SvrA,SvrB,SvrC<Servers>
<PropertyGroup>
<ItemGroup>
<--Get full folder paths-->
<ConfigFolders Include="$([System.IO.Directory]::GetDirectories('C:\02-App', 'Folder-?'))"/>
<--Get just the folder names: 'Folder-1;Folder-2;Folder-3'-->
<ConfigFolderNames Include="$([System.IO.Path]::GetFileName('%(ConfigFolders.FullPath)'))" />
</ItemGroup>
我需要做些什么来获得这样的最终结果?
<PropertyGroup>
<ServerList>SvrA,Folder-1;SvrB,Folder-2;SvrC,Folder-3</ServerList>
<PropertyGroup>