-
Notifications
You must be signed in to change notification settings - Fork 51
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
WebView2Loader.dll is left out when publishing #1061
Comments
@Rauce This doesn't seem to be limited to 1.0.705.50 vs 1.0.774.44, as the original issue was reported for 1.0.705.50. For 1.0.774.44 I think we consolidated the loader dlls to be in the "runtimes" folder for both .NET Framework and Core (previously they were duplicated). Regardless it seems the issue is still persisting. @Perka1000 I've opened a bug on our backlog to take a look at this. It looks related to #730. |
This should be fixed in SDK package 1.0.1056-prerelease. Thanks! |
Hi @champnic . According to me the bug is still there.
I have also added the source code for example I described above. Thanks |
Hi @champnic , Thanks, |
If you are creating a separate MSI installer it's possible you have to manually include the necessary files. We have a description of what you'll need to include here: |
I see the best fix is to manually load the WebView2Loader.dll into the executable directory/deployment package. I know this is an odd use case, but I happen to be trying to add WebView2 to a ClickOnce deployed VSTO add in for Office 2016. If you're not aware, the ClickOnce build, deploy, install, update, and execution within Office is not that straightforward as having an "executable directory" as the assemblies load from the ClickOnce cache, a series of random directories in the local user profile. Any pointers for forcing WebView2Loader.dll into a ClickOnce? I cannot add it as a reference as it doesn't appear to be a valid assembly or COM component according to VS2019. Thanks! |
Hey @dodgecox-dansal - If the UI is not letting you do this, you should be able to manually edit the csproj file to include the dll: |
WebView2Loader.dll is left out when publishing an application that have reference to a class library with package reference to Microsoft.Web.WebView2.
Native dll is WebView2Loader.dll.deploy is missing.
Everything works fine when publishing an application with package reference to Microsoft.Web.WebView2.
Step to reproduce issue:
Thanks
Perka
AB#32169077
The text was updated successfully, but these errors were encountered: