Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong path for System.Data reference in DirectWriteForwarder.dll (WPF)? #3128

Open
rohahn opened this issue Nov 23, 2023 · 0 comments
Open
Labels

Comments

@rohahn
Copy link

rohahn commented Nov 23, 2023

Steps to reproduce

  1. Open DirectWriteForwarder.dll (e.g. C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.25\DirectWriteForwarder.dll)
  2. Select References / System.Data
  3. Check the path in the detail view

image

Although the requested version is 4.0.0.0, the version from .NET 6 is used.

JetBrains dotPeek shows the .NET Framework 4.x version.

image

The System.Data assembly that is installed by .NET 6 or newer contains references that cannot be resolved:

image

Details

  • Product in use: ILSpy / ICSharpCode.Decompiler
  • Version in use: 8.2.0.7535

We noticed this issue when analyzing a Docfx problem.
DirectWriteForwarder.dll is referenced by PresentationCore.dll of WPF.

When debugging a WPF application I noticed that System.Data.dll is not loaded at all, although DirectWriteForwarder.dll is loaded.

Therefore I am not really sure what is the correct behavior here. Either ILSpy/Decompiler should resolve System.Data 4.0.0.0 in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Data.dll or it should be able to resolve the Version 0.0.0.0 references in C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.25\System.Data.dll.

Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant