MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Problem/Bug]: If the <TargetFramework> is a .NET Framework version (e.g. net481), the WebView2 control does not work correctly.
@ningccn is already working on this.
Since Mar 11, 2024.
- 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
- Create a WinForms project (NOT .NET Framewrok project).
- Change in the .csproj file to net481.
- Add a WebView2 control to Form control and Set Uri (https://microsoft.com) to the Source property of the WebView2 control.
- Run the project.
Please check the attached sample project for details.
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.