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]: Missing ARM condition in WebView2 NuGet #5104

Closed
mattleibow opened this issue Feb 14, 2025 · 1 comment
Closed

[Problem/Bug]: Missing ARM condition in WebView2 NuGet #5104

mattleibow opened this issue Feb 14, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@mattleibow
Copy link

What happened?

When building with .NET MAUI, we notice that ARM machines are failing to show the webview. I notice that there is an incorrect x86 WebView2Loader.dll in the output dir instead of arm64.

Looking at the targets (build\Common.targets), I see:

<EffectivePlatform Condition="'$(NETCoreSdkRuntimeIdentifier)' == 'win-x86'">x86</EffectivePlatform>
<EffectivePlatform Condition="'$(NETCoreSdkRuntimeIdentifier)' == 'win-x64'">x64</EffectivePlatform>

For ARM64, there should be an additional:

<EffectivePlatform Condition="'$(NETCoreSdkRuntimeIdentifier)' == 'win-arm64'">arm64</EffectivePlatform>

I tested with adding that myself and things work again.

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

1.0.2792.45

Framework

WinUI3/WinAppSDK

Operating System

Windows 11

OS Version

No response

Repro steps

  1. File | New | .NET MAUI
  2. Build on ARM Windows

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

No, this never worked

Last working version (if regression)

No response

@Scottj1s
Copy link

Windows App SDK 1.7 Preview 1 release will contain an updated WebView2 package reference (v1.0.2903.40) with a fix for this issue. A workaround is to add an explicit reference to a recent WebView2 package.

@sivMSFT sivMSFT closed this as completed Feb 20, 2025
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

3 participants