-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
WPF content files don't work with single-file #3516
Comments
Tagging subscribers to this area: @agocke |
The behavior in single-file publishing looks by-design to me: https://github.com/dotnet/designs/blob/main/accepted/2020/single-file/design.md I think this issue is more appropriate for the WPF repo |
This is a regression (since Preview 8). Although single file self-contained WPF applications didn't work until RC2, framework-dependent applications did. |
Bumping this issue after 2 years as I want to express my continued interest. |
Description
Create a WPF application that uses ContentFiles
When run outside single file this works and can load content.
When run under singlefile this fails because this throws:
wpf/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ContentFilePart.cs
Line 113 in eaece0a
Resulting in null return value which later throws here:
wpf/src/Microsoft.DotNet.Wpf/src/PresentationFramework/MS/Internal/AppModel/ContentFilePart.cs
Line 76 in eaece0a
Most likely this ContentFilePart needs to "know" about single-file and be able to fetch it's content file.
Configuration
net5.0-windows, 5.0.0-rc.2.20464.8, publishSingleFile, win-x64
Regression?
No, single file WPF didn't work until RC2
Other information
Repro:
wpf.zip
To repro run
dotnet publish -p:PublishSingleFile=true -r:win-x64 -f:net5.0-windows
Compare execution of normal vs single file app.
The text was updated successfully, but these errors were encountered: