Skip to content
Browse files

Make dotnet test execute only test projects (#86)

This change modifies the VSTest target to ensure
that the VSTest target gets executed for test projects

The solution for the problem is based on:
  • Loading branch information...
frederik-h authored and mjsabby committed Dec 5, 2018
1 parent ae1f568 commit 7f529a0852bf882b098bb6aef52cfaf2cc95a60c
Showing with 14 additions and 0 deletions.
  1. +9 −0 Directory.Build.targets
  2. +5 −0 after.LLVMSharp.sln.targets
@@ -0,0 +1,9 @@
<Target Name="VSTestIfTestProject">
<!-- Change VSTest to call only projects where IsTestProject is defined.
This gets defined in Microsoft.NET.Test.Sdk and hence
VSTest is run only on test projects. -->
<CallTarget Targets="VSTest" Condition="'$(IsTestProject)' == 'true'" />

@@ -0,0 +1,5 @@
<Target Name="VSTest">
<MSBuild Projects="@(ProjectReference)" Targets="VSTestIfTestProject" />

0 comments on commit 7f529a0

Please sign in to comment.
You can’t perform that action at this time.