Publish Release Configuration with WindowsAppSDKSelfContained failed #5000
Labels
area-Deployment
Issues related to packaging, installation, runtime (e.g., SelfContained, Unpackaged)
bug
Something isn't working
Describe the bug
I'm trying to publish a project as a self contained singled exe file (None WindowsPackage) now.
Everything works fine as long as it is the Debug configuration. But it failed with the following error message in the Release configuration.
I spent a bit time to figure out what causes this error message, and it seems like a combination of WindowsAppSDKSelfContained with Release configuration cause of the issue.
It works when I commented out the WindowsAppSDKSelfContiane, but now the application requires WindowsApp runtime...
Steps to reproduce the bug
.csproj file:
win-x64.pubxml file:
Expected behavior
Publish should succeeded.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.3: 1.6.241114003
Windows version
Windows 11 (24H2): Build 26100
Additional context
No response
The text was updated successfully, but these errors were encountered: