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]: Microsoft.Web.WebView2.Core missing from NuGet package build #4784

Closed
Daeer-Projects opened this issue Sep 2, 2024 · 5 comments
Assignees
Labels
bug Something isn't working regression Something used to work but doesn't anymore

Comments

@Daeer-Projects
Copy link

What happened?

Application Crashes due to missing dll's

Our application crashes when run.

Our application is a dotnet 8 WPF application. We have a console application that runs the UI when it is loaded.

Problem

Using the NuGet version of 1.0.2739.15 causes our application to crash when loading with the following exception.

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.WebView2.Core, Version=1.0.2739.15, Culture=neutral, PublicKeyToken=2a8ab48044d2601e'. The system cannot find the file specified. File name: 'Microsoft.Web.WebView2.Core, Version=1.0.2739.15, Culture=neutral, PublicKeyToken=2a8ab48044d2601e'

I checked the build folders for both the Bootstrapper and UserInterface projects. The UI project contains the dll's, but the Bootstrapper project doesn't.

Probable Cause

Looking at the packages on NuGet, I have noticed that the dll's for the net core app version are no longer contained in the lib folder.

Last working NuGet package

WebView2WorkingPackage

Current stable NuGetpackage

This is the current stable package showing the netcoreapp folder is missing.

WebView2NotWorkingPackage

Work-a-round

For now, I'll use the old NuGet package.

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

1.0.2739.15

SDK Version

1.0.2739.15

Framework

WPF

Operating System

Windows 10, Windows 11

OS Version

19045.4780

Repro steps

Setup

  1. Create a solution that contains two projects.
  2. First project is a console application. Target Framework: net8.0-windows, Output Type: WinExe.
  3. Second project is the UI. Target Framework: net8.0-windows, Output Type: Library, UseWPF: true.
  4. Add the package Microsoft.Web.WebView2 to the UI project.
  5. Call the application.Run() from the console application project (to run the UI).

Result

The result is the application crashes due to the missing dll's.

Expected results

The application runs and renders the UI without any exceptions.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer SDK

Last working version (if regression)

1.0.2592.51

@Daeer-Projects Daeer-Projects added the bug Something isn't working label Sep 2, 2024
Copy link

github-actions bot commented Sep 2, 2024

Hi, @Daeer-Projects!

It seems that your issue contains the word "crash". If you have not already, could you attach a crash dump as a comment?

WV2 crash dumps are located in a subfolder of the app's user data folder (UDF): <UDF>\EBWebView\Crashpad\reports\. By default, the user data folder is created in the app's folder with a name like <App Exe Name>.exe.WebView2. Refer to Crash Diagnostics for more information.

Thank you for your cooperation!

@github-actions github-actions bot added the regression Something used to work but doesn't anymore label Sep 2, 2024
@Daeer-Projects
Copy link
Author

When I say "Crash", I mean it did not run. I have no dump files to give.

@oggy22
Copy link
Member

oggy22 commented Sep 3, 2024

Hi @Daeer-Projects , thanks for reporting the issue. It seems very likely related to #4743 which has been fixed and I have provided the internally built SDKs with the fix. Would you mind checking whether you can repro the problem with 1.0.2805 and/or 1.0.2805-prerelease?

@vbryh-msft vbryh-msft assigned oggy22 and unassigned vbryh-msft and lflores-ms Sep 3, 2024
@Daeer-Projects
Copy link
Author

Hello @oggy22

That worked for me. The application runs as expected.
When is that SDK going to be released for general use?

Thanks.

@oggy22
Copy link
Member

oggy22 commented Sep 4, 2024

Target date is September 24th Monday September 23rd. Thanks for confirming the fix works for you. I am closing this bug.

@oggy22 oggy22 closed this as completed Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Something used to work but doesn't anymore
Projects
None yet
Development

No branches or pull requests

4 participants