-
Notifications
You must be signed in to change notification settings - Fork 11
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
NuGet validation fails with 1.6 references due to unexpected included webview2loader.dll #215
Comments
Platform has asked us to try something, then we can pass to WebView2 team. From Scott: I'd suggest your team experiment with hacking up your WebView2 nuget cache locally to get things working, then pass your mods back to Ogi. Specifically, these elements in It sounds like you may have experimented with setting <PropertyGroup>
<WebView2NeverCopyLoaderDllToOutputDirectory Condition="'$(WebView2NeverCopyLoaderDllToOutputDirectory)' == '' And '$(WebView2EnableCsWinRTProjection)' == 'true'">true</WebView2NeverCopyLoaderDllToOutputDirectory>
</PropertyGroup> |
Update we needed new package, WebView2 was published yesterday with the property:
@Arlodotexe do we have an applicable targets hook we could use for this somewhere or would we have to create one? There may also be instead a |
That's in the WebView2 package, but you should just be able to use |
1>C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(5321,5): error MSB3030: Could not copy the file "C:\Users....nuget\packages\communitytoolkit.winui.animations\8.2.240909-build.1181\lib\net8.0-windows10.0.22621\CommunityToolkit.WinUI.Animations\runtimes\win-x64\native\WebView2Loader.dll" because it was not found.
looks like a path problem:
Wrong
C:\Users....nuget\packages\communitytoolkit.winui.animations\8.2.240909-build.1181\lib\net8.0-windows10.0.22621\CommunityToolkit.WinUI.Animations\runtimes\win-x64\native\
Correct
C:\Users....nuget\packages\communitytoolkit.winui.animations\8.2.240909-build.1181\lib\net8.0-windows10.0.22621.0\CommunityToolkit.WinUI.Animations\runtimes\win-x64\native
Note the missing
.0
in the TFM part of the path, should benet8.0-windows10.0.22621.0
but wasnet8.0-windows10.0.22621
.Talking with @Arlodotexe it sounds similar (though different) to the issue Morten had reported in Labs here: CommunityToolkit/Labs-Windows#569
Though with all the WebView changes between preview1 and stable, we may just want to have them reproduce once we have a 1.6 build to try. Still an issue in 1.6 stable, seems like a regression in the platform.
Originally posted by @michael-hawker in #205 (comment) - Internal Platform Tracking Issue
The text was updated successfully, but these errors were encountered: