Skip to content

[Problem/Bug]: Blazor Hybrid error upgrading .NET 9 to .NET 10 #5436

@jtenney-alamar

Description

@jtenney-alamar

What happened?

Upgraded Blazor Hybrid WPF app to .NET 10. Installed Microsoft.AspNetCore.Components.WebView.Wpf 10.0.10, which installs Microsoft.Web.WebView2 1.0.3179.45. At runtime, WebView2CompositionControl.TryInitializeD3DImage() throws the exception "Could not load file or assembly 'Microsoft.Windows.SDK.NET, Version=10.0.17763.10, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified." I'm not sure this is an issue for your team (might be AspNetCore team?), but don't know who to give it to in that team--any suggestions would be helpful.

Importance

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

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

1.0.3179.45

SDK Version

No response

Framework

WPF

Operating System

Windows 10, Windows 11

OS Version

No response

Repro steps

Performed an upgrade of a working app from .NET 9 to .NET 10 using Blazor hybrid. Immediately the app started to fail.

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Regression in newer Runtime

Last working version (if regression)

Worked fine in .NET 9 with Microsoft.AspNetCore.Components.WebView.Wpf 9.0.120

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions