MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Problem/Bug]: If the <TargetFramework> is a .NET Framework version (e.g. net481), the WebView2 control does not work correctly.

Open
#4,416 1 comment 0 reactions 1 assignee View on GitHub

@ningccn is already working on this.

Since Mar 11, 2024.

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

Description

What happened?

If the is a .NET Framework version (e.g. net481), the WebView2 control does not work correctly.
In addition, because of this defect, attempts to call WebView2 from F# Script do not work correctly, affecting library releases.

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

122.0.2365.80

SDK Version

1.0.2365.46

Framework

Winforms

Operating System

Windows 11

OS Version

22631.3235

Repro steps
  1. Create a WinForms project (NOT .NET Framewrok project).
  2. Change in the .csproj file to net481.
  3. Add a WebView2 control to Form control and Set Uri (https://microsoft.com) to the Source property of the WebView2 control.
  4. Run the project.

Please check the attached sample project for details.

WebView2SampleApp.zip

Notes
  • If is set to "net8.0-windows", etc., it works correctly.
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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.