MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Can't use WinUI3/WindowsAppSDK with WebView2 Nuget packages

Open
#396 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Unable to build sample project "Getting started with WebView2 in WinUI3 (Preview)" https://docs.microsoft.com/en-us/microsoft-edge/webview2/gettingstarted/winui after adding reference to WebView2

Build failed with error:
Error WMC1006 Cannot resolve Assembly or Windows Metadata file 'Type universe cannot resolve assembly: System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.'

AB#37267505

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

Reproduce the build failure in the “Getting started with WebView2 in WinUI3 (Preview)” sample after adding a WebView2 NuGet reference. Start with the reported WMC1006 error for System.Windows.Forms and verify that the sample builds successfully without the unresolved assembly error.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.