Skip to content

[Problem/Bug]: Starting from Net5.0, it does not support running #5271

Open
@Coolkeke

Description

@Coolkeke

What happened?

When I changed the running environment of my WPF program to Net5.0, it directly reported an error with a prompt

Image

System.IO.FileNotFoundException:“Could not load file or assembly 'Microsoft.Windows.SDK.NET, Version=10.0.17763.10, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the specified file. ”

When it is below 5.0, it can operate normally

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

9.0.102

Framework

WPF

Operating System

Windows 10

OS Version

No response

Repro steps

You can directly use the WebView2Samples project to restore the phenomenon, and modify the Target Frameworks to net5.0-windows or even higher to restore the problem

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

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