Skip to content
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 core warnings for missing DLLs in a .NET Framework 4.8 solution #4778

Open
rozeboosje opened this issue Aug 29, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@rozeboosje
Copy link

What happened?

I have a .NET Framework 4.8 Solution that uses WebView2. We updated the nuget package to 1.0.2739.15 and now when I build the software I am getting the following warnings in the Error List

Severity Code Description Project File Line Suppression State Details
Warning The referenced component '.nuget\packages\microsoft.web.webview2\1.0.2739.15\build..\lib_manual\netcoreapp3.0\Microsoft.Web.WebView2.Wpf.dll' could not be found. KHFramework
Warning The referenced component '.nuget\packages\microsoft.web.webview2\1.0.2739.15\build..\lib_manual\netcoreapp3.0\Microsoft.Web.WebView2.WinForms.dll' could not be found. KHFramework
Warning The referenced component '.nuget\packages\microsoft.web.webview2\1.0.2739.15\build..\lib_manual\netcoreapp3.0\Microsoft.Web.WebView2.Core.dll' could not be found. KHFramework
Warning The referenced component '.nuget\packages\microsoft.web.webview2\1.0.2739.15\build..\lib_manual\net6.0-windows10.0.17763.0\Microsoft.Web.WebView2.Core.Projection.dll' could not be found. KHFramework

Since our Solution targets .NET Framework 4.8 I'm not sure why these warnings should be relevant and they should therefore not appear. The software appears to work fine after building but we don't want to simply ignore warnings.

Importance

Moderate. My app's user experience is affected, but still usable.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

128.0.2739.42

SDK Version

1.0.2739.15

Framework

WPF

Operating System

Windows 11

OS Version

No response

Repro steps

As far as I can tell this just requires a .NET Framework 4.8 Solution that uses WebView2. When you build it these warnings appear. The resulting software seems to work fine so it doesn't seem to affect end users but unnecessary warnings clutter the "error list" and this might lead to us missing something that's important so if something can be done to remove these warnings I would appreciate it.

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

@rozeboosje rozeboosje added the bug Something isn't working label Aug 29, 2024
@oggy22
Copy link
Member

oggy22 commented Sep 3, 2024

Hi @rozeboosje , thank you for reporting the issue. It seems related to #4743 which has been fixed and I have provided the internally built SDKs to the chat. Can you please try checking whether you can repro the problem with 1.0.2805 and/or 1.0.2805-prerelease?

@rozeboosje
Copy link
Author

Hello @oggy22 sorry for the delay

At the moment in the nuget package manager the latest prerelease available to me is 1.0.2783-prerelease so it looks like I cannot install 1.0.2805 just yet?

@oggy22
Copy link
Member

oggy22 commented Sep 8, 2024

It seems like you need to make sure you set the sources to local folder where you downloaded the nuget files. You navigate to your project in the Solution Explorer, right click on the solution -> Manage Nuget Packages... On the top-right side change the Package Source to point to the local folder where you downloaded the file (and renamed it). Maybe this page can help https://learn.microsoft.com/en-us/nuget/consume-packages/install-use-packages-visual-studio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants