Skip to content

Commit 46c23e7

Browse files
Fix System.IO.FileSystem.DisabledFileLocking.Tests with NativeAOT (#72311)
#72310 tracks supporting runtimeconfig.template.json. Use the MSBuild property instead as that one works.
1 parent 50fa756 commit 46c23e7

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/libraries/System.IO.FileSystem/tests/DisabledFileLockingTests/System.IO.FileSystem.DisabledFileLocking.Tests.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,7 @@
3333
<ItemGroup>
3434
<ProjectReference Include="$(CommonTestPath)StreamConformanceTests\StreamConformanceTests.csproj" />
3535
</ItemGroup>
36+
<ItemGroup>
37+
<RuntimeHostConfigurationOption Include="System.IO.DisableFileLocking" Value="true" />
38+
</ItemGroup>
3639
</Project>

src/libraries/System.IO.FileSystem/tests/DisabledFileLockingTests/runtimeconfig.template.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)