I am running
<ItemGroup>
<TestItem Include="ITEM_VALUE"/>
<TestItem Include="ITEM_VALUE2"/>
</ItemGroup>
<Target Name="test">
<Message Text="@(TestItem->Count())"/>
</Target>
Expecting to see "2" as the result
Error I'm getting instead:
Test.targets(5,5): error MSB4184: The expression ""ITEM_VALUE".Count()" cannot be evaluated. Method 'System.String.Count' not found.
Using .NET 4.0 MsBuild (Toolsversion 4.0)