Tyler Brown
Tyler Brown

Reputation: 157

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

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?

Upvotes: 1

Views: 1340

Answers (1)

Lex Li
Lex Li

Reputation: 63183

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.

Upvotes: 5

Related Questions