How to select first item in an ItemGroup
<Target Name="FirstCompile" BeforeTargets="Compile">
<ItemGroup>
<Reversed Include="@(Compile->Reverse())" />
</ItemGroup>
<PropertyGroup>
<First>%(Reversed.Identity)</First>
</PropertyGroup>
<Message Text="First compile item is $(First)" Importance="high" />
</Target>PreviousWrite entire XML fragments in MSBuild with XmlPokeNextHow to include commit URL in nuget package description
Last updated