Replies: 1 comment 9 replies
-
It might be caused by the changes in #6538 which made the initialization code of DirectWriteForwarder call a Windows function that might not exist in certain versions of Windows 7. You could try and install KB2533623 to see if it fixes your issue. Also note that Windows 7 is no longer supported by Microsoft and thus no longer supported by .Net. See this link for the list of supported OS by .Net 8. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, all.
I built wpf 8.0.2 from sources using VS 2022 BuildTools 17.9.2.
Command line is:
dotnet\wpf\8.0.2\build.cmd -configuration Release /p:DotNetUseShippingVersions=true /p:VersionSuffix=<my_suffix> /p:EnableSourceLink=false -verbosity:detailed /m:1
And when i try to use it on Win7 with simple wpf application, I realized that DirectWriteForwarder.dll doesn't want to be load with the error:
"FileLoadException: Could not load file or assembly 'C:\Program Files (x86)\dotnet\shared\Microsoft.WindowsDesktop.App\8.0.2\DirectWriteForwarder.dll'. A dynamic link library (DLL) initialization routine failed. (0x8007045A)"
If i change this DirectWriteForwarder.dll to the original from the official distributiion, then everything is work fine.
I did some reseearch and discovered that the CLR header of my DirectWriteForwarder.dll and official one are differ.
The offical DirectWriteForwarder.dll has "IL Library" flag in CLR header, but my DirectWriteForwarder.dll has "IL Only" flag.
Also .text section in the official dll is several times bigger than in mine. The count of sections is also differs: I have 4 sections, but in official are only 3.
Is somebody know how to build wpf from source to get the similar dll-s like in official distribution?
Or at least how to get DirectWriteForwarder.dll with the same CLR header?
I also extracted that the official DirectWriteForwarder.dll in dotnet 8.0.2 was build fron the same commit 472140d which I used for my built, this information contained in the official binary.
Thank you for any help or information.
Beta Was this translation helpful? Give feedback.
All reactions