Could not install package 'Microsoft.Toolkit.Forms.UI.Controls.WebView 5.0.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Nuget Package(s): Microsoft.Toolkit.Wpf.UI.Controls
Package Version(s): Latest stable 5.0.1
Device form factor:
Visual Studio
Microsoft.Toolkit.Forms.UI.Controls.WebView聽has dependency to .net framework 4.6.2
watching dependency category https://dotnet.myget.org/feed/uwpcommunitytoolkit/package/nuget/Microsoft.Toolkit.Forms.UI.Controls.WebView
Thanks @Jong-uk-Kim
Which version should I install for my WPF application that is using .net framework 4.6.1?
@ThunderBoltEngineer 4.6.2 is the minimum, so you'd need to update your project to 4.6.2 to use the WebView. There's no plans to support 4.6.1, 4.6.2 fixed some DPI issues that were required for use by the WebView.
Thanks @michael-hawker
After installing .NET 4.6.2 package, I upgraded the project's .NET version and now it all works smoothly!
Most helpful comment
Thanks @michael-hawker
After installing .NET 4.6.2 package, I upgraded the project's .NET version and now it all works smoothly!