Closed NXY666 closed 1 month ago
I think the ResourceManager from the Microsoft.Windows.ApplicationModel.Resources
namespace will work with single file publishing.
I think the ResourceManager from the
Microsoft.Windows.ApplicationModel.Resources
namespace will work with single file publishing.
Thank you very much!
After replacing it with the ResourceManager you mentioned, it worked. I spent several months looking for a solution. 😂
@NXY666 Thanks for reporting this, and @lhak thanks for the solution. Closing issue as resolved.
Describe the bug
When I tried to enable "PublishSingleFile" and attempted to publish it as a single executable file, an error occurred when accessing ResourceManager.Current:
Steps to reproduce the bug
In the constructor of MainWindow, write the following code:
Expected behavior
No response
Screenshots
No response
NuGet package version
Windows App SDK 1.5.5: 1.5.240627000
Packaging type
Unpackaged
Windows version
Windows 11 version 22H2 (22621, 2022 Update)
IDE
Visual Studio 2022
Additional context
This is the code mentioned above: Demo.zip