Skip to content

Commit

Permalink
Use property AutoreleasePoolSupport in test (#76800)
Browse files Browse the repository at this point in the history
The SDK also set the RuntimeHostConfigurationOption item.
So setting in this project results in multiple copies of the same item.

I'm not sure if this causes a problem with any currently supported
configuration of .NET, but it is detectable when compiling this test
with NativeAOT. ILC fails because multiple copies of the
`--appcontextswitch` flag are passed with the same key.
  • Loading branch information
AustinWise authored Oct 11, 2022
1 parent f745eb9 commit daa88f6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
<OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestTargetUnsupported Condition="'$(TargetsOSX)' != 'true' and '$(TargetsiOS)' != 'true' and '$(TargetstvOS)' != 'true'">true</CLRTestTargetUnsupported>
<AutoreleasePoolSupport>true</AutoreleasePoolSupport>
</PropertyGroup>
<ItemGroup>
<RuntimeHostConfigurationOption Include="System.Threading.Thread.EnableAutoreleasePool" Value="true" Trim="true" />
</ItemGroup>
<ItemGroup>
<Compile Include="*.cs" />
</ItemGroup>
Expand Down

0 comments on commit daa88f6

Please sign in to comment.