-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Problem/Bug]: [NET 9] Dependency conflict #4924
Comments
The warning also occurs under .NET 8 and only since WebView2 version 1.0.2849.39. The message does not occur in WebView2 version 1.0.2792.45. |
I am wondering whether the issue you're encountering is a version conflict between different versions of the The warning states that I suspect when upgrading to a new .NET version, some dependencies might still reference older versions of assemblies, leading to conflicts. Possible Solutions
If you need further assistance or have any specific questions, feel free to ask! |
The problem goes away if you add this to your '.proj' file:
|
Thanks for the solution! Is there an explanation for this? Thanks! |
I don't call this a solution but a temporary workaround until they have fixed their dependency mess. I don't have an explanation (I found this on StackOverflow, don't have the link anymore, sorry). |
What happened?
This phenomenon occurred after we upgraded to .NET 9.0, and a warning is generated during compilation:
File: Microsoft.Common.CurrentVersion.targets
The project does not use WPF or WinForms; it controls windows through the Win32 API (Set Handle). Therefore, there is actually no dependency on WindowBase at all. Previously, everything was normal in the .NET 8.0 environment.
Although the project is still running normally, we would also like to find the cause and eliminate this warning.
Thanks
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Stable release (WebView2 Runtime), Prerelease (Edge Canary/Dev/Beta)
Runtime Version
130.0.2849.80
SDK Version
1.0.2895-prerelease
Framework
Other
Operating System
Windows 11
OS Version
22631.4460
Repro steps
Upgrade to .NET 9.0
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
The text was updated successfully, but these errors were encountered: