Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 0cc8949

Browse files
committed
Fix ref-def mismatch in FileSystem tests
Since FileSystem tests are using a project reference to System.Runtime.Extensions, and S.R.E uses a project reference to System.Diagnostics.Debug (due to https://github.com/dotnet/corefx/issues/2817) these tests must also use a P2P reference to S.D.D.
1 parent 4e02b77 commit 0cc8949

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/System.IO.FileSystem/tests/System.IO.FileSystem.Tests.csproj

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,23 @@
3131

3232
<!--
3333
Until an updated packages is published, temporarily copy the locally built System.Runtime.Extensions library
34-
but still reference the contract from the package for compiling.
34+
but still reference the contract from the package for compiling.
3535
Issue https://github.com/dotnet/corefx/issues/2519 is tracking the removal of this ProjectReference
36+
We also must reference System.Diagnostics.Debug due to this project reference and issue
37+
https://github.com/dotnet/corefx/issues/2817.
3638
-->
3739
<ProjectReference Include="..\..\System.Runtime.Extensions\src\System.Runtime.Extensions.CoreCLR.csproj">
3840
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
3941
<OutputItemType>Content</OutputItemType>
4042
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4143
<Targets>Build;DebugSymbolsProjectOutputGroup</Targets>
4244
</ProjectReference>
45+
<ProjectReference Include="..\..\System.Diagnostics.Debug\src\System.Diagnostics.Debug.csproj">
46+
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
47+
<OutputItemType>Content</OutputItemType>
48+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
49+
<Targets>Build;DebugSymbolsProjectOutputGroup</Targets>
50+
</ProjectReference>
4351
</ItemGroup>
4452
<ItemGroup>
4553
<!-- Rewritten -->

0 commit comments

Comments
 (0)