Skip to content

Commit

Permalink
Set UseMicrosoftTestingPlatformRunner only to true when it's actually…
Browse files Browse the repository at this point in the history
… a test project.
  • Loading branch information
danielcweber committed Jan 15, 2025
1 parent 1f33590 commit b2792e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
<TargetFrameworks Condition="'$(Configuration)' == 'Release'">net6.0;net7.0;net8.0;$(TargetFrameworks)</TargetFrameworks>

<NoWarn>CA2007;$(NoWarn)</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="$(ProjectName.EndsWith('Tests'))">
<UseMicrosoftTestingPlatformRunner>true</UseMicrosoftTestingPlatformRunner>
</PropertyGroup>

Expand Down

0 comments on commit b2792e2

Please sign in to comment.