Can I batch based on a Property (not just Items)?
Posted
by Josh Buedel
on Stack Overflow
See other posts from Stack Overflow
or by Josh Buedel
Published on 2010-03-08T21:04:46Z
Indexed on
2010/03/08
21:06 UTC
Read the original article
Hit count: 195
msbuild
I have a property group, like so:
<PropertyGroup>
<Platform>Win32;x64</Platform>
</PropertyGroup>
And I want to batch in an Exec task, like so:
<Exec Command='devenv MySolution.sln /Build "Release|%(Platform)"' />
But of course, as written I get an error:
error MSB4095: The item metadata %(Platform) is being referenced without an item name. Specify the item name by using %(itemname.Platform).
Can I batch tasks on properties that are lists? I suppose I could hack it by creating a placeholder ItemGroup with metadata and batch on that.
© Stack Overflow or respective owner