Skip to content

Commit 8fafcb3

Browse files
agockejtschuster
andauthored
Enable runtime async for all libraries test projects (#123448)
Co-authored-by: Jackson Schuster <36744439+jtschuster@users.noreply.github.com>
1 parent 9baed28 commit 8fafcb3

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

eng/testing/tests.targets

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
<Project>
2+
<!-- Enable runtime async for all .NET 11+ test projects. -->
3+
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net11.0'))
4+
and '$(TestNativeAot)' != 'true'
5+
and '$(TestReadyToRun)' != 'true'
6+
and '$(UseNativeAOTRuntime)' != 'true'
7+
and '$(TargetOS)' != 'browser'
8+
and '$(TargetOS)' != 'wasi'
9+
and '$(RuntimeFlavor)' != 'Mono'
10+
and '$(UseRuntimeAsync)' != 'false'">
11+
<EnablePreviewFeatures>true</EnablePreviewFeatures>
12+
<Features>$(Features);runtime-async=on</Features>
13+
</PropertyGroup>
214
<PropertyGroup>
315
<RunScriptWindowsCmd Condition="'$(OS)' == 'Windows_NT' and '$(RunScriptWindowsCmd)' == ''">true</RunScriptWindowsCmd>
416
<RunScriptWindowsCmd Condition="'$(OS)' != 'Windows_NT' and '$(RunScriptWindowsCmd)' == ''">false</RunScriptWindowsCmd>
@@ -79,7 +91,7 @@
7991
Condition="'$(ArchiveTests)' == 'true' and '$(IgnoreForCI)' != 'true' and ('$(TargetsMobile)' != 'true' or '$(TargetOS)' == 'browser' or '$(TargetOS)' == 'wasi' or '$(BuildTestsOnHelix)' == 'true')"
8092
AfterTargets="$(ArchiveTestsAfterTargets)"
8193
DependsOnTargets="GenerateRunScript;ZipTestArchive" />
82-
94+
8395
<Target Name="ZipTestArchive"
8496
Condition="'$(TargetsAppleMobile)' != 'true'">
8597
<Error Condition="'$(TestArchiveTestsDir)' == ''" Text="TestArchiveTestsDir property to archive the test folder must be set." />

0 commit comments

Comments
 (0)