-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Getting "MSB3030 Could not copy the file ..winuiex\2.4.1\lib\net6.0-windows10.0.19041\WinUIEx\runtimes\win-x64\native\WebView2Loader.dll" because it was not found. #188
Comments
I have the same issue, not only with the WinUIEx NuGet package but also with some internal NuGet packages. I think it has something to do with the decoupling of WebView2 from WinUI in the new 1.6 release, but so far I haven't found any workaround other than downgrading to 1.5. |
Which version are you referencing? There’s a bug in webview package that 1.6 of windows app Sdk relies on but I added a workaround for that in 2.4.1. If you are already on 2.4.1 could you share a repro app? |
@dotMorten sure, see the third link in my original post. |
Aaah thanks. Does this also happen to you if you don’t use the separate packaging project? |
Actually I know what’s going on. I know I added that workaround for this issue but don’t see it now. Something in a merge must have gone wrong. I’ll get a fix out in a few hours … |
I restored the fix but it'll be a little while before I can get to test it. If you have a minute, you can try the nuget package that'll be generated once the action completes here in a few minutes: https://github.com/dotMorten/WinUIEx/actions/runs/11035641248 |
I downloaded the WinUIEx.2.4.2.nupkg file from the action artifacts and referenced it as a local Nuget feed. |
Thanks for confirming. Looks like this issue only affects projects with a separate packaging project, which is why I missed it. It's a non-issue with single-project packaged apps. |
Fixed in v2.4.2 |
@MagnusJohansson and thanks for the donation too! I'm having an extra coffee today :) |
Also see this in community toolkit: CommunityToolkit/Tooling-Windows-Submodule#216 |
After adding WinUIEx to an OOB WinUI3 app template project, I get:
Reproducible projects:
https://github.com/MagnusJohansson/App1WithWinUIEx
Which gives me:
WindowsSdkPackageVersion
:https://github.com/MagnusJohansson/App1WithWinUIEx/tree/feature/amend-appsdk-requirements
All good.
https://github.com/MagnusJohansson/App1WithWinUIEx/tree/add-winuiex
I now get the "WebView2Loader.dll" error as stated at the top.
Of course, if I clone this WinUIEx repo and build, everything works, because then I have those runtime dependencies:
But I don't have them in my NuGet cache:
Any ideas?
The text was updated successfully, but these errors were encountered: