Skip to content

Commit 64b2f81

Browse files
AustinWiseAustin Wise
authored andcommitted
Use property AutoreleasePoolSupport in test
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.
1 parent ecc1ca1 commit 64b2f81

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/tests/Interop/ObjectiveC/AutoReleaseTest/AutoReleaseTest.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
<OutputType>Exe</OutputType>
44
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
55
<CLRTestTargetUnsupported Condition="'$(TargetsOSX)' != 'true' and '$(TargetsiOS)' != 'true' and '$(TargetstvOS)' != 'true'">true</CLRTestTargetUnsupported>
6+
<AutoreleasePoolSupport>true</AutoreleasePoolSupport>
67
</PropertyGroup>
7-
<ItemGroup>
8-
<RuntimeHostConfigurationOption Include="System.Threading.Thread.EnableAutoreleasePool" Value="true" Trim="true" />
9-
</ItemGroup>
108
<ItemGroup>
119
<Compile Include="*.cs" />
1210
</ItemGroup>

0 commit comments

Comments
 (0)