在Visual Studio 2015中打开Visual Studio 2017项目

Zor*_*hgo 21 visual-studio asp.net-core-mvc .net-core asp.net-core

我已经转到Visual Studio 2017 RC,但我们仍然有人在Visual Studio 2015上工作.目前我在2017年创建一个项目时,它将无法在2015年运行.当项目在VS2015上打开时,我不断获得黄色三角形说有问题.它不会建立.

在此输入图像描述

与黄色三角形关联的错误消息是它无法找到这些文件.我认为问题是由于VS2017使用的新.csproj文件而不是.net核心一直使用的project.json文件.

在此输入图像描述

我认为在VS2017上创建的项目与2015年向后兼容.我猜他们不是.有谁知道是否有任何方法可以创建一个可以在VS2015和VS2017上工作的项目?谢谢!

Bra*_*son 18

csproj的.NET核心为基础的项目在Visual Studio 2015中不支持有一个关于它的讨论,在这里,但它的要点是:

Rich Lander [MSFT]

We are working to get the new .NET Core msbuild-based tools finished
and at RTM quality as quickly as possible. They will be supported in
Visual Studio 2017+ and will be shipped as RTM next year. The changes
are significant, including to Visual Studio components, making it
very challenging for us to support them in Visual Studio 2015.
Run Code Online (Sandbox Code Playgroud)