MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Problem/Bug]: Error on initialization using WebView2CompositionControl on .net core 8.0 on a shared project
@Navdeep-ss is already working on this.
Since Mar 24, 2025.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
What happened?
I have a shared project with a WPF with a WebView2CompositionControl, on a project with .net framework 4.5 everything works but then loading the WPF on a .net core 8.0 project I get the following on initialization of the WPF:
Could not load type 'Microsoft.Web.WebView2.Wpf.WebView2CompositionControl' from assembly 'Microsoft.Web.WebView2.Wpf, Version=1.0.2045.28, Culture=neutral, PublicKeyToken=2a8ab48044d2601e'.
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
1.0.3124.44
SDK Version
No response
Framework
WPF
Operating System
Windows 11
OS Version
26100.3476
Repro steps
Create a WPF with a WebView2CompositionControl in a shared project. Call that shared project from a .net core project, and it will throw an error when initializing. I tried all the versions where WebView2CompositionControl is available and had the same issue
Repros in Edge Browser
Yes, issue can be reproduced 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.