Skip to content

[Problem/Bug]: WebView2 issue when nuget package used in WinForms project #5219

Open
@ericstj

Description

@ericstj

What happened?

See dotnet/winforms#13358 for details (or transfer the issue if you are able).

There's a bug in the WebView package in that it presents WPF assemblies to applications which do not use WPF, this leads to build warnings.

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

1.0.3179.45

Framework

Winforms

Operating System

Windows 11

OS Version

No response

Repro steps

Reference Microsoft.Web.WebView2 in a .NET 8 winforms project

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions