-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |