Skip to content
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

The default WinUI3 template app does not work in Release mode (including deployment). #10008

Closed
Cyp9715 opened this issue Sep 23, 2024 · 1 comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@Cyp9715
Copy link

Cyp9715 commented Sep 23, 2024

Describe the bug

First, everything works smoothly in Debug mode.
However, as soon as I switch to Release mode and try to run the app by pressing Ctrl+F5, nothing happens.

This issue occurs not only in the code I modified but also in the default WinUI3 template.

Steps to reproduce the bug

  1. Launch Visual Studio 2022.
  2. Create project "C# Blank App, Packaged (WinUI3)."
  3. It probably won't build even in Debug mode. Therefore, add the syntax <WindowsSdkPackageVersion>10.0.1941.38</WindowsSdkPackageVersion> to the .csproj file.
  4. Press F5 in Debug mode to verify that it works properly.
  5. In Release mode, press the F5 button, Ctrl + F5, or the deploy button, then run the deployed app to check if it functions properly.

In step 5, you will find that none of them function properly.

Expected behavior

No response

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.6.0: 1.6.240829007

Windows version

Windows 11 (22H2): Build 22621

Additional context

No response

@Cyp9715 Cyp9715 added the bug Something isn't working label Sep 23, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Sep 23, 2024
@Cyp9715
Copy link
Author

Cyp9715 commented Sep 27, 2024

See the issue.

I don't know why MS has that option as True.

@Cyp9715 Cyp9715 closed this as completed Sep 27, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added needs-triage Issue needs to be triaged by the area owners and removed needs-triage Issue needs to be triaged by the area owners labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant