如何在Visual Studio for Mac中打开预先存在的.NET Core应用程序?

时间:2023-01-13 22:01:30

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).

正如标题所暗示的那样,我只是想打开具有我的.NET Core应用程序的目录(我使用命令dotnet new -t web从dotnet CLI工具引导应用程序)。

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 个解决方案

#1


4  

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

您必须在http://dot.net(预览> = 3)升级到最新的SDK,并使用dotnet migrate迁移现有的基于project.json的项目

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

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

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

然后可以在VS for Mac中打开csproj文件。

#1


4  

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

您必须在http://dot.net(预览> = 3)升级到最新的SDK,并使用dotnet migrate迁移现有的基于project.json的项目

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

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

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

然后可以在VS for Mac中打开csproj文件。