3

I'm migrating my project from .net Framework pro .net core.

I installed Visual Studio Community 2019 and .net core packages (Including .net core 3.0).

Error Message

I have already followed the guidelines outlined but the selection I am oriented to do simply does not exist in Visual Studio Community 2019:

instructions

I did it in 2017, but the problem was not solved.

VS 2017


I also tried to create the form through the command:

dotnet new winforms -o FormCore

The project is created, but I can not open it. I have the error message:

The project file is incomplete. Expected imports are missing

I've already tried installing Visual Studio Community 2019. The problem persists.

If anyone can help me with the solution to this problem, thank you very much.

1

1 Answer 1

6

Are you using the preview version of visual studio 2019? To be able to open winforms projects with .NET Core you have to have the preview version of it. The release version doesn't have support for desktop development in .net core 3.0

You should also enable the preview development with Visual Studio, to do it you should go to

Tools → Options → Projects and Solutions → .NET Core and check Use preview versions of the .NET Core SDK

Or depending on your vs version preview version in could be located in:

Tools → Options → Environment → Use preview versions of the .NET Core SDK

Sign up to request clarification or add additional context in comments.

5 Comments

Yes. I'm using a preview version.
I do not have this option in VS 2019. The last image shows this.
Maybe in your version that check is located inside Environment. Go to Tools → Options → Environment → Use preview versions of the .NET Core SDK
Yes, that is solution. Add your answer so I can mark it as answered. Tanks.
That's great! I just added it my answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.