MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Webview2 doesn't work on WinUI3 if you set the "Output type" of the app to Console
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
What happened?
Setting Output type of the WinUI3 app to "Console" should work exactly like "windows app" with an additional console window, but webview2 doesn't work if the output type is set to Console. It is fine for me without using console but that makes debugging harder.
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
124.0.2478.80
SDK Version
1.0.1823.32
Framework
WinUI3/WinAppSDK
Operating System
Windows 11
OS Version
22631.3527
Repro steps
- Create a WinUI3 blank app in visual studio
- Add Webview2 like what Microsoft learn do
- Right click the project in solution explorer and select properties
- "Set Output type to console"
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the WinUI3 blank-app reproduction described in the issue, following the Microsoft Learn WebView2 setup and changing the project Output type to Console. Compare WebView2 behavior with the default Windows app output using the stated SDK and runtime versions. Done means WebView2 works while the application also opens its console window.
Written by the indexing model from the issue text.
Assessment
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100