I have a class library(targeting .NET Standard 2.0) for someone else to consume, and I want to provide a view (using WebView2) so that the consuming app can display a web view. As far as I understand WebView2 has SDKs targeting different desktop application development options such as Win32, WPF & Windows Forms. How should I write my view once so that it will target and be compatible with all these different options? or is it even possible to do so?
In fact, after installing the WebView2 SDK in nuget in my class library project, I can't even import Microsoft.Web.Webview2 to start with... maybe it's because my class library's target platform?