Skip to content

WebView2WindowsFormsBrowser fails because of .NETFramework v=4.6.2 dependency #102

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

Open
fenchu opened this issue Aug 31, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@fenchu
Copy link

fenchu commented Aug 31, 2021

Nice if you could upgrade this to newer .NET 5 or 6. because .NET 4.6.2 is blocked from installing on win10

I tried running:
dotnet tool install -g upgrade-assistant
upgrade-assistant.exe upgrade .\WebView2WindowsFormsBrowser.csproj

It goes through, but when I clean or rebuild I still get warnings about .NET v462 missing.

@fenchu
Copy link
Author

fenchu commented Aug 31, 2021

Needed to explicitly set net5-windows:

-    <TargetFrameworks>net462</TargetFrameworks>
+    <TargetFrameworks>net5-windows</TargetFrameworks>
-    <Configurations>Debug;Release;Win7 Release;Win7 Debug</Configurations>
+    <Configurations>Debug;Release;Win10 Release;Win10 Debug</Configurations>

@liminzhu
Copy link
Member

liminzhu commented Sep 1, 2021

Thanks for opening the issue! Tracking this as a bug on our end.

@liminzhu liminzhu added the bug Something isn't working label Sep 1, 2021
@MikeyWetzel
Copy link

This is still a problem. Simple facts remain: (1) this code does not build in it's present form, and (2) this years-old code is the only official sample code released on how to use WebView2 in C#.

@ext2txe
Copy link

ext2txe commented Apr 11, 2024

wow! it's April 2024 and it still does not run. nice

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

4 participants