MicrosoftEdge / WebView2Feedback

Feedback and discussions about Microsoft Edge WebView2
https://aka.ms/webview2
453 stars 55 forks source link

Both Wpf and Winforms assemblies are copied for all .NET projects #1078

Open champnic opened 3 years ago

champnic commented 3 years ago

We're still seeing both the Wpf.dll and Winforms.dll getting copied to output in the 1.0.790-prerelease. Our runtimes directory is good now, but we were expecting not to have the Wpf.dll copied to output for a .NET Framework WinForms project with the closure of this issue:

Microsoft.Web.WebView2.Core.dll
Microsoft.Web.WebView2.WinForms.dll
Microsoft.Web.WebView2.Wpf.dll

Originally posted by @billybooth in https://github.com/MicrosoftEdge/WebView2Feedback/issues/461#issuecomment-797663118

AB#32137154

znakeeye commented 1 year ago

More than two years later and this is still not fixed?!

Should be fairly simple to just separate WebView2 into two sub packages. E.g.:

<PackageReference Include="Microsoft.Web.WebView2" /> 

becomes

<PackageReference Include="Microsoft.Web.WebView2" /> 
<PackageReference Include="Microsoft.Web.WebView2.Wpf" />

or

<PackageReference Include="Microsoft.Web.WebView2" /> 
<PackageReference Include="Microsoft.Web.WebView2.WinForms" />