Skip to content
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

How to reference Windows.Forms in a library that uses MsBuild.Sdk.Extras, on .net core? #231

Open
bgavrilMS opened this issue Jul 16, 2020 · 2 comments

Comments

@bgavrilMS
Copy link

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?

@chucker
Copy link

chucker commented Jul 23, 2020

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

@clairernovotny
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants