MSBuildSdkExtras
MSBuildSdkExtras copied to clipboard
How to reference Windows.Forms in a library that uses MsBuild.Sdk.Extras, on .net core?
To be able to use Windows Forms or WPF in .NET Core, we are asked to use:
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
Which conflicts with MsBuild.Sdk.Extras.
Do you have any suggestions on how to take advantage of both of these technologies?
Perhaps you can use the old way of importing its targets via PackageReference and Import: https://github.com/novotnyllc/MSBuildSdkExtras#migrate-from-the-old-way-vs-pre-156
You don't need the Extras when using the .NET Core 3.x SDK for targeting Windows Forms. Just make sure you have "UseWindowsForms" set to true in your project file.