Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Traversal project
<Project>
<ItemGroup>
<Projects Include="$(MSBuildStartupDirectory)\**\*.*proj" />
</ItemGroup>
<Target Name="VSTest">
<Message Importance="High" Text="Found project: %(Projects.Identity)" />
<MSBuild Projects="@(Projects)" Targets="VSTest" BuildInParallel="true" SkipNonexistentTargets="true" />
</Target>
<Target Name="Restore">
<Message Importance="High" Text="Found project: %(Projects.Identity)" />
<MSBuild Projects="@(Projects)" Targets="Restore" BuildInParallel="false" SkipNonexistentTargets="true" />
</Target>
<Target Name="Build">
<Message Importance="High" Text="Found project: %(Projects.Identity)" />
<MSBuild Projects="@(Projects)" Targets="Build" BuildInParallel="true" SkipNonexistentTargets="true" />
</Target>
</Project>
@dasMulli

This comment has been minimized.

Copy link
Owner Author

@dasMulli dasMulli commented Jun 4, 2020

Run with dotnet test ~/traversal.proj in a directory with test projects

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment