MicrosoftEdge / MicrosoftEdge/WebView2Feedback

WebView2 in unpackaged WinUI3 application not displaying after upgrading Microsoft.Windows.SDK.BuildTools.

Open
#3,018 1 comment 0 reactions 1 assignee 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

Description
When I upgraded my NuGet package Microsoft.Windows.SDK.BuildTools from 10.0.22621.1 to 10.0.22621.755 the WebView2 control stopped displaying. I can see it in the Live Visual Tree with no web content when debugging.

Version
SDK: Microsoft.Windows.SDK.NET.Ref 10.0.19041.27
Runtime: Edge 107.0.1418.62
Framework: Microsoft.NETCore.App 6.0.1.1 (WinUI3)
OS: Win10

Repro Steps
Create a blank WinUI3 application and add a WebView2 to the MainWindow grid as follows:

Run the application as an Unpackaged after setting the following in the *.csproj file:
false
None
The WebView 2 will work at first, but after upgrading the Nuget package Microsoft.Windows.SDK.BuildTools from 10.0.22621.1 to 10.0.22621.755 you will only see a blank window.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.