MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Webview2 doesn't work on WinUI3 if you set the "Output type" of the app to Console

Open
#4,533 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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
  1. Create a WinUI3 blank app in visual studio
  2. Add Webview2 like what Microsoft learn do
  3. Right click the project in solution explorer and select properties
  4. "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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.