How do I open a pre-existing .NET Core application in Visual Studio for Mac?

1.2k views Asked by At

As the title suggests, I'm simply looking to open the directory that has my .NET Core application (I bootstrapped the application from the dotnet CLI tool with the command dotnet new -t web).

It seems that I can only open a Solution file rather than just a directory. How would I then generate a Solution, but maintain the development work I've already done in this project?

1

There are 1 answers

2
Lex Li On BEST ANSWER

You have to upgrade to latest SDK at http://dot.net (preview >= 3), and migrate existing project.json based projects using dotnet migrate

https://learn.microsoft.com/en-us/dotnet/articles/core/preview3/tools/dotnet-migrate

Then the csproj files can be opened in VS for Mac.