How to open dotnet-core CLI project in Visual Studio 2017

别来无恙 提交于 2019-12-05 06:55:46

If your project has an .xproj file

  1. Open Visual Studio.
  2. File > Open > Project/Solution.
  3. Open the xxx.xproj for your solution.

If your project lacks an .xproj file

  1. Install .NET Core SDK Preview 3 or higher.
  2. Open a command prompt at your project's directory.
  3. Run dotnet migrate.
  4. Open the resulting .csproj in Visual Studio 2017.

Troubleshooting

View migration help with dotnet migrate -h.

If you have a global.json file, update its SDK version before running migrate. E.g.

{
    "sdk": {
        "version": "1.0.0-preview4-004233"
    }
}

View installed SDK versions with dir 'C:\Program Files\dotnet\sdk\'.

Update Visual Studio 2017 and its installer. On my machine, the above works with Microsoft Visual Studio Community 2017 RC Version 15.0.26014.0 D15REL.

Update .NET Core SDK. On my machine, the above works with SDK 1.0.0-preview4-004233.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!