Skip to content

Commit b6dabb1

Browse files
authored
dotnet test MTP: Don't use CallTarget (#50569)
1 parent ec71743 commit b6dabb1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Layout/redist/MSBuildImports/Current/Microsoft.Common.CrossTargeting.targets/ImportAfter/Microsoft.TestPlatform.CrossTargeting.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ Copyright (c) .NET Foundation. All rights reserved.
100100
=================================================================================
101101
-->
102102

103-
<Target Name="_MTPBuild" DependsOnTargets="_ComputeTargetFrameworkItems">
104-
<CallTarget Targets="Build" />
103+
<Target Name="_MTPBuild">
104+
<MSBuild Projects="$(MSBuildProjectFullPath)" />
105105
</Target>
106106

107107
</Project>

src/Layout/redist/MSBuildImports/Current/Microsoft.Common.targets/ImportAfter/Microsoft.TestPlatform.ImportAfter.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ Copyright (c) .NET Foundation. All rights reserved.
1818
</PropertyGroup>
1919
<Import Condition="Exists('$(VSTestTargets)')" Project="$(VSTestTargets)" />
2020
<Target Name="_MTPBuild">
21-
<CallTarget Targets="Build" Condition="'$(IsTestingPlatformApplication)'=='true'" />
21+
<MSBuild Projects="$(MSBuildProjectFullPath)" Condition="'$(IsTestingPlatformApplication)'=='true'" />
2222
</Target>
2323
</Project>

0 commit comments

Comments
 (0)