Skip to content

Commit 1f74ef6

Browse files
Execute GetTestsProject msbuild task if IsTestApplication property is true (#44158)
1 parent e273411 commit 1f74ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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
@@ -19,7 +19,7 @@ Copyright (c) .NET Foundation. All rights reserved.
1919
<Import Condition="Exists('$(VSTestTargets)')" Project="$(VSTestTargets)" />
2020
<!-- Register TestingPlatform task -->
2121
<UsingTask TaskName="GetTestsProject" AssemblyFile="$(MicrosoftNETBuildTasksDirectory)Microsoft.NET.Build.Tasks.dll" />
22-
<Target Name="_GetTestsProject" Condition=" $(IsTestProject) == 'true' OR '$(IsTestingPlatformApplication)' == 'true' " >
22+
<Target Name="_GetTestsProject" Condition=" $(IsTestProject) == 'true' OR '$(IsTestingPlatformApplication)' == 'true' OR '$(IsTestApplication)' == 'true' " >
2323
<GetTestsProject TargetPath="$(TargetPath)" GetTestsProjectPipeName="$(GetTestsProjectPipeName)" ProjectFullPath="$(MSBuildProjectFullPath)" TargetFramework="$(TargetFramework)" RunSettingsFilePath="$(RunSettingsFilePath)" />
2424
</Target>
2525
</Project>

0 commit comments

Comments
 (0)