Skip to content

Commit

Permalink
Add MSBuild test targets
Browse files Browse the repository at this point in the history
Add MSBuild test targets to make the test runner not search for
tests within non-test projects as per the following:

microsoft/vstest#1129
https://dasmulli.blog/2018/01/20/make-dotnet-test-work-on-solution-files/
  • Loading branch information
asbjornu committed Nov 5, 2018
1 parent 99bb2fd commit 53c6330
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<Target Name="VSTestIfTestProject">
<CallTarget Targets="VSTest" Condition="'$(IsTestProject)' == 'true'" />
</Target>
</Project>
5 changes: 5 additions & 0 deletions after.JsonLD.sln.targets
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<Target Name="VSTest">
<MSBuild Projects="@(ProjectReference)" Targets="VSTestIfTestProject" />
</Target>
</Project>

0 comments on commit 53c6330

Please sign in to comment.