-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move logic to arcade Microsoft.DotNet.Build.Tasks
- Loading branch information
1 parent
eb1afce
commit c564e27
Showing
3 changed files
with
8 additions
and
9 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
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
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 |
---|---|---|
@@ -1,19 +1,18 @@ | ||
<Project> | ||
<Target Name="Test" DependsOnTargets="GetProjectWithBestTargetFrameworks;RemoveNetFrameworkProjectsOnNonWindows"> | ||
<Target Name="Test" DependsOnTargets="RemoveNetFrameworkProjectsOnNonWindows;GetProjectWithBestTargetFrameworks"> | ||
<MSBuild Projects="@(InnerBuildProjectsWithBestTargetFramework)" | ||
Targets="Test"> | ||
</MSBuild> | ||
</Target> | ||
<Target Name="VSTest" DependsOnTargets="GetProjectWithBestTargetFrameworks;RemoveNetFrameworkProjectsOnNonWindows"> | ||
<Target Name="VSTest" DependsOnTargets="RemoveNetFrameworkProjectsOnNonWindows;GetProjectWithBestTargetFrameworks"> | ||
<MSBuild Projects="@(InnerBuildProjectsWithBestTargetFramework)" | ||
Targets="VSTest"> | ||
</MSBuild> | ||
</Target> | ||
<Target Name="RemoveNetFrameworkProjectsOnNonWindows" Condition="'$(TargetOS)' != 'windows'"> | ||
<ItemGroup> | ||
<PropertyGroup> | ||
<!-- we'd try to run tests with Mono for netfx projects which doesn't work so filter them out --> | ||
<InnerBuildProjectsWithBestTargetFramework Remove="@(InnerBuildProjectsWithBestTargetFramework)" Condition="$([System.String]::Copy('%(AdditionalProperties)').Contains('TargetFramework=$(NetFrameworkCurrent)'))" /> | ||
<InnerBuildProjectsWithBestTargetFramework Remove="@(InnerBuildProjectsWithBestTargetFramework)" Condition="$([System.String]::Copy('%(AdditionalProperties)').Contains('TargetFramework=$(NetFrameworkMinimum)'))" /> | ||
</ItemGroup> | ||
<IncludeNetFrameworkTfms>false</IncludeNetFrameworkTfms> | ||
</PropertyGroup> | ||
</Target> | ||
</Project> |