File tree 6 files changed +26
-6
lines changed
6 files changed +26
-6
lines changed Original file line number Diff line number Diff line change 25
25
<MicrosoftCodeAnalysisBannedApiAnalyzersVersion >$(MicrosoftCodeAnalysisPublicApiAnalyzersVersion)</MicrosoftCodeAnalysisBannedApiAnalyzersVersion >
26
26
<!-- MSBuild Sdk versions updates -->
27
27
<MicrosoftDotNetBuildTasksTemplatingPackageVersion >8.0.0-beta.24165.4</MicrosoftDotNetBuildTasksTemplatingPackageVersion >
28
- <!-- Testing platform (this comment is here to avoid conflict on darc PRs) -- >
28
+ <MicrosoftPlaywrightVersion >1.42.0</ MicrosoftPlaywrightVersion >
29
29
<MicrosoftTestingFrameworkVersion >1.2.0-preview.24168.3</MicrosoftTestingFrameworkVersion >
30
30
<MicrosoftTestingPlatformVersion >1.2.0-preview.24168.3</MicrosoftTestingPlatformVersion >
31
- <MSTestEngineVersion >1.0.0-alpha.24168.3</MSTestEngineVersion >
32
31
<MicrosoftVisualStudioThreadingAnalyzersVersion >17.9.28</MicrosoftVisualStudioThreadingAnalyzersVersion >
32
+ <MSTestEngineVersion >1.0.0-alpha.24168.3</MSTestEngineVersion >
33
33
<StyleCopAnalyzersVersion >1.2.0-beta.556</StyleCopAnalyzersVersion >
34
34
</PropertyGroup >
35
35
<PropertyGroup Label =" MSTest test dependencies" >
Original file line number Diff line number Diff line change 35
35
</ItemGroup >
36
36
<Target Name =" GenerateTemplates" AfterTargets =" PrepareForBuild" >
37
37
<PropertyGroup >
38
- <_TemplateProperties >MSTestEngineVersion=$(MSTestEngineVersion);MSTestVersion=$(Version);MicrosoftTestingPlatformVersion=$(MicrosoftTestingPlatformVersion);MicrosoftNETTestSdkVersion=$(MicrosoftNETTestSdkVersion);MicrosoftTestingExtensionsCodeCoverageVersion=$(MicrosoftTestingExtensionsCodeCoverageVersion)</_TemplateProperties >
38
+ <_TemplateProperties >MSTestEngineVersion=$(MSTestEngineVersion);MSTestVersion=$(Version);MicrosoftTestingPlatformVersion=$(MicrosoftTestingPlatformVersion);MicrosoftNETTestSdkVersion=$(MicrosoftNETTestSdkVersion);MicrosoftTestingExtensionsCodeCoverageVersion=$(MicrosoftTestingExtensionsCodeCoverageVersion);MicrosoftPlaywrightVersion=$(MicrosoftPlaywrightVersion) </_TemplateProperties >
39
39
</PropertyGroup >
40
40
41
41
<!--
Original file line number Diff line number Diff line change 27
27
</PropertyGroup >
28
28
29
29
<!-- Core -->
30
- <ItemGroup >
30
+ <ItemGroup Condition = " '$(EnablePlaywright)' == 'false' " >
31
31
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" $(MicrosoftNETTestSdkVersion)" VersionOverride =" $(MicrosoftNETTestSdkVersion)" />
32
32
<PackageReference Include =" MSTest.TestAdapter" Version =" $(MSTestVersion)" VersionOverride =" $(MSTestVersion)" />
33
33
<PackageReference Include =" MSTest.TestFramework" Version =" $(MSTestVersion)" VersionOverride =" $(MSTestVersion)" />
34
34
<PackageReference Include =" MSTest.Analyzers" Version =" $(MSTestVersion)" VersionOverride =" $(MSTestVersion)" Condition =" '$(EnableMSTestAnalyzers)' != 'false' " />
35
35
</ItemGroup >
36
36
37
+ <ItemGroup Condition =" '$(EnablePlaywright)' == 'true' " >
38
+ <PackageReference Include =" Microsoft.Playwright.MSTest" Version =" $(MicrosoftPlaywrightVersion)" VersionOverride =" $(MicrosoftPlaywrightVersion)" />
39
+ <PackageReference Include =" MSTest.Analyzers" Version =" $(MSTestVersion)" VersionOverride =" $(MSTestVersion)" Condition =" '$(EnableMSTestAnalyzers)' != 'false' " />
40
+ </ItemGroup >
41
+
37
42
<!-- Extensions -->
38
43
<ItemGroup >
39
44
<PackageReference Include =" Microsoft.Testing.Extensions.TrxReport" Version =" $(MicrosoftTestingExtensionsTrxReportVersion)" VersionOverride =" $(MicrosoftTestingExtensionsTrxReportVersion)" Condition =" '$(EnableMicrosoftTestingExtensionsTrxReport)' == 'true' " />
Original file line number Diff line number Diff line change 3
3
4
4
<Import Project =" $(MSBuildThisFileDirectory)Common.targets" />
5
5
6
+ <Target Name =" _MSTestSDKValidatePlaywright" BeforeTargets =" Build" >
7
+ <Error Condition =" '$(EnablePlaywright)' == 'true' " Text =" Playwright currently doesn't support NativeAOT mode." />
8
+ </Target >
9
+
10
+ <!-- Core -->
6
11
<ItemGroup >
7
12
<PackageReference Include =" Microsoft.Testing.Platform.MSBuild" Version =" $(MicrosoftTestingPlatformVersion)" VersionOverride =" $(MicrosoftTestingPlatformVersion)" />
8
13
<PackageReference Include =" MSTest.TestFramework" Version =" $(MSTestVersion)" VersionOverride =" $(MSTestVersion)" />
Original file line number Diff line number Diff line change 5
5
<Import Project =" Sdk.props" Sdk =" Microsoft.NET.Sdk" />
6
6
7
7
<PropertyGroup >
8
+ <EnablePlaywright Condition =" '$(EnablePlaywright)' == '' " >false</EnablePlaywright >
8
9
<UseVSTest Condition =" '$(UseVSTest)' == '' " >false</UseVSTest >
9
10
<MSTestVersion Condition =" '$(MSTestVersion)' == '' " >${MSTestVersion}</MSTestVersion >
10
11
<MSTestEngineVersion Condition =" '$(MSTestEngineVersion)' == '' " >${MSTestEngineVersion}</MSTestEngineVersion >
11
12
<MicrosoftNETTestSdkVersion Condition =" '$(MicrosoftNETTestSdkVersion)' == '' " >${MicrosoftNETTestSdkVersion}</MicrosoftNETTestSdkVersion >
13
+ <MicrosoftPlaywrightVersion Condition =" '$(MicrosoftPlaywrightVersion)' == '' " >${MicrosoftPlaywrightVersion}</MicrosoftPlaywrightVersion >
12
14
<MicrosoftTestingExtensionsCodeCoverageVersion Condition =" '$(MicrosoftTestingExtensionsCodeCoverageVersion)' == '' " >${MicrosoftTestingExtensionsCodeCoverageVersion}</MicrosoftTestingExtensionsCodeCoverageVersion >
13
15
<MicrosoftTestingPlatformVersion Condition =" '$(MicrosoftTestingPlatformVersion)' == '' " >${MicrosoftTestingPlatformVersion}</MicrosoftTestingPlatformVersion >
14
16
</PropertyGroup >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<Project xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
3
4
- <ItemGroup >
5
- <PackageReference Include =" MSTest" Version =" $(MSTestVersion)" VersionOverride =" $(MSTestVersion)" />
4
+ <ItemGroup Condition =" '$(EnablePlaywright)' == 'false' " >
5
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" $(MicrosoftNETTestSdkVersion)" VersionOverride =" $(MicrosoftNETTestSdkVersion)" />
6
+ <PackageReference Include =" MSTest.TestAdapter" Version =" $(MSTestVersion)" VersionOverride =" $(MSTestVersion)" />
7
+ <PackageReference Include =" MSTest.TestFramework" Version =" $(MSTestVersion)" VersionOverride =" $(MSTestVersion)" />
8
+ <PackageReference Include =" MSTest.Analyzers" Version =" $(MSTestVersion)" VersionOverride =" $(MSTestVersion)" Condition =" '$(EnableMSTestAnalyzers)' != 'false' " />
9
+ </ItemGroup >
10
+
11
+ <ItemGroup Condition =" '$(EnablePlaywright)' == 'true' " >
12
+ <PackageReference Include =" Microsoft.Playwright.MSTest" Version =" $(MicrosoftPlaywrightVersion)" VersionOverride =" $(MicrosoftPlaywrightVersion)" />
13
+ <PackageReference Include =" MSTest.Analyzers" Version =" $(MSTestVersion)" VersionOverride =" $(MSTestVersion)" Condition =" '$(EnableMSTestAnalyzers)' != 'false' " />
6
14
</ItemGroup >
7
15
8
16
</Project >
You can’t perform that action at this time.
0 commit comments