-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MergedTestRunner.targets
27 lines (22 loc) · 1.37 KB
/
MergedTestRunner.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!--
This file is intended to be included from all of the merged test runner projects.
Sets IsMergedTestRunnerAssembly.
Expects MergedWrapperProjectReference. Will set Aliases metadata and add into
ProjectReference.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IsMergedTestRunnerAssembly>true</IsMergedTestRunnerAssembly>
<EmitCompilerGeneratedFiles Condition="'$(EmitCompilerGeneratedFiles)' == ''">true</EmitCompilerGeneratedFiles>
</PropertyGroup>
<ItemGroup>
<!-- string.Concat("_", string.Copy("%(Filename)").Replace("-", "_").Replace(".", "_")) -->
<MergedWrapperProjectReference Update="**" Aliases="$([System.String]::Concat("_",$([System.String]::Copy("%(Filename)").Replace("-","_").Replace(".","_"))))" />
<!--
If the merged test runner was specified to be built as Standalone, don't force the referenced projects to be built that way as well.
If we're building all tests as standalone, then don't reference the other test projects from the merged wrapper. We'll only build the tests in the wrapper itself
into it.
-->
<ProjectReference Include="@(MergedWrapperProjectReference)" UndefineProperties="BuildAsStandalone" Condition="'$(BuildAllTestsAsStandalone)' != 'true'" />
</ItemGroup>
</Project>