Skip to content

Commit 7790699

Browse files
committed
Move logic relevant to core MTP out of MTP.MSBuild
1 parent 7385de3 commit 7790699

File tree

4 files changed

+34
-21
lines changed

4 files changed

+34
-21
lines changed

src/Platform/Microsoft.Testing.Platform.MSBuild/buildMultiTargeting/Microsoft.Testing.Platform.MSBuild.targets

-21
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
33

4-
<PropertyGroup>
5-
<!-- This is the knob to disable completely for this project the machinery -->
6-
<IsTestingPlatformApplication Condition=" '$(IsTestingPlatformApplication)' == '' ">true</IsTestingPlatformApplication>
7-
</PropertyGroup>
8-
9-
<!-- Declare our capability to Visual Studio/Visual Studio Code -->
10-
<!-- Note: DisableTestingPlatformServerCapability or IsTestingPlatformApplication may be set by TestAdapter targets -->
11-
<!-- While TestAdapter targets file is imported *after* this file, MSBuild evaluates properties -->
12-
<!-- first, then items. So, we will be able to pick up the correct value here. -->
13-
<ItemGroup Condition=" '$(DisableTestingPlatformServerCapability)' != 'true' AND '$(IsTestingPlatformApplication)' == 'true' ">
14-
<ProjectCapability Include="TestingPlatformServer" />
15-
16-
<!-- Old capability expected by VS/VSCode -->
17-
<ProjectCapability Include="TestContainer" />
18-
</ItemGroup>
19-
20-
<!-- Add assembly attribute metadata for reflection usage -->
21-
<ItemGroup>
22-
<AssemblyMetadata Include="Microsoft.Testing.Platform.Application" Value="true" Condition=" '$(IsTestingPlatformApplication)' == 'true' " />
23-
</ItemGroup>
24-
254
<!-- Setup the task folder -->
265
<PropertyGroup>
276
<!-- Constants -->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Project>
2+
<Import Project="$(MSBuildThisFileDirectory)..\..\buildMultiTargeting\Microsoft.Testing.Platform.targets" />
3+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<Project>
3+
<PropertyGroup>
4+
<!-- This is the knob to disable completely for this project the machinery -->
5+
<IsTestingPlatformApplication Condition=" '$(IsTestingPlatformApplication)' == '' ">true</IsTestingPlatformApplication>
6+
</PropertyGroup>
7+
8+
<!-- Declare our capability to Visual Studio/Visual Studio Code -->
9+
<!-- Note: DisableTestingPlatformServerCapability or IsTestingPlatformApplication may be set by TestAdapter targets -->
10+
<!-- While TestAdapter targets file is imported *after* this file, MSBuild evaluates properties -->
11+
<!-- first, then items. So, we will be able to pick up the correct value here. -->
12+
<ItemGroup Condition=" '$(DisableTestingPlatformServerCapability)' != 'true' AND '$(IsTestingPlatformApplication)' == 'true' ">
13+
<ProjectCapability Include="TestingPlatformServer" />
14+
15+
<!-- Old capability expected by VS/VSCode -->
16+
<ProjectCapability Include="TestContainer" />
17+
</ItemGroup>
18+
19+
<!-- Add assembly attribute metadata for reflection usage -->
20+
<ItemGroup>
21+
<AssemblyMetadata Include="Microsoft.Testing.Platform.Application" Value="true" Condition=" '$(IsTestingPlatformApplication)' == 'true' " />
22+
</ItemGroup>
23+
24+
<Target Name="_MTPAddArguments" BeforeTargets="ComputeRunArguments">
25+
<RunArguments Condition="'(TestingPlatformCommandLineArguments)' != ''">$(RunArguments) $(TestingPlatformCommandLineArguments)</RunArguments>
26+
</Target>
27+
28+
</Project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<Project>
2+
<Import Project="$(MSBuildThisFileDirectory)..\..\buildMultiTargeting\Microsoft.Testing.Platform.targets" />
3+
</Project>

0 commit comments

Comments
 (0)