如何在vs2019中运行.xproj文件

How to run .xproj file in vs2019

我有 .xproj 项目,Visual Studio 抛出“此项目与 Visual Studio 的当前版本不兼容”异常。我怎样才能运行这个项目?

正如微软所说,您无法使用 VS2019 16.3 及更高版本打开

Visual Studio 2019: In version 16.3 and later, you cannot load or migrate xproj projects. For more information, see Migrating .NET Core projects to the csproj format.

https://docs.microsoft.com/tr-tr/visualstudio/porting/port-migrate-and-upgrade-visual-studio-projects?view=vs-2019

您必须通过一种方式迁移 VS2017 或 VS2019 16.2 或更早版本

When you open an .xproj file or a solution file that references .xproj files in Visual Studio 2017 or Visual Studio 2019 version 16.2 and earlier, the One-way upgrade dialog appears. The dialog displays the projects to be migrated. If you open a solution file, all the projects specified in the solution file are listed. Review the list of projects to be migrated and select OK.

https://docs.microsoft.com/en-us/dotnet/core/migration/#visual-studio