-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
.NET 5.0 self-contained .exe with embedded native libraries is not compatible with WPF #38636
Comments
Tagging subscribers to this area: @swaroop-sridhar, @agocke |
Confirmed this locally. |
@fabiant3 It looks like WPF has a hardcoded check (VerifyWpfDllSet) that prevents self-contained apps from embedding in single-file. Could you take a look at this and see what the fix should be? |
@ryalanms will take a look. Is this blocking current preview? |
It would be really good if we could get it in before the next (last) preview. Since this is a blocker for embedding assemblies in WPF apps I'm worried we may miss more fundamental bugs if we don't have at least one working Preview. |
It would be great to get rid of the call to |
This has been fixed in RC2 |
Description
Simple repro steps in command line:
dotnet new wpf
dotnet publish -f net5.0 -r win-x64 /p:PublishSingleFile=true /p:IncludeNativeLibrariesInSingleFile=true
Expected behavior:
Actual behavior:
Configuration
Other information
This appears to be caused by WPF DLL consistency check: it is not allowing loading of PresentationNative_cor3.dll from the TEMP folder where it is extracted as part of the current method of embedding native libraries into single file publishing. For me it is not clear whether this bug should be assigned to dotnet/runtime or dotnet/wpf.
Here's the start of the exception message from Windows Application event log:
The text was updated successfully, but these errors were encountered: