Skip to content

Commit ec37825

Browse files
committed
Only override the toolset compiler for the runtime-async tests
1 parent 4fd8b16 commit ec37825

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/tests/Directory.Build.props

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
<Import Project="$(MSBuildThisFileDirectory)\Common\dir.sdkbuild.props" Condition="'$(UsingMicrosoftNETSdk)' == 'true'" />
99
<Import Project="$(MSBuildThisFileDirectory)\Common\dir.common.props" Condition="'$(UsingMicrosoftNETSdk)' != 'true'" />
1010

11-
<PropertyGroup>
12-
<!-- Override the compiler version with a private build that supports runtime-async -->
13-
<MicrosoftNetCompilersToolsetVersion>5.0.0-1.25259.6</MicrosoftNetCompilersToolsetVersion>
14-
<RoslynCompilerType>Custom</RoslynCompilerType>
15-
</PropertyGroup>
16-
1711
<PropertyGroup>
1812
<RunningOnUnix Condition="('$(RunningOnUnix)' == '') And ('$(MSBuildRuntimeType)' == 'Core') And ('$(OS)'!='Windows_NT')">true</RunningOnUnix>
1913
</PropertyGroup>

src/tests/async/Directory.Build.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
<EnableNETAnalyzers>false</EnableNETAnalyzers>
1010
<Features>$(Features);runtime-async=on</Features>
1111
</PropertyGroup>
12+
13+
<PropertyGroup>
14+
<!-- Override the compiler version with a private build that supports runtime-async -->
15+
<MicrosoftNetCompilersToolsetVersion>5.0.0-1.25259.6</MicrosoftNetCompilersToolsetVersion>
16+
<RoslynCompilerType>Custom</RoslynCompilerType>
17+
</PropertyGroup>
18+
1219
<ItemGroup>
1320
<Compile Include="$(MSBuildThisFileDirectory)RuntimeAsyncMethodGenerationAttribute.cs" />
1421
</ItemGroup>

0 commit comments

Comments
 (0)