VS2017 : Target framework drop down does not show .NET Core 2.1 option

前端 未结 8 1606
暖寄归人
暖寄归人 2021-02-05 02:36

I have already installed VS2017 Enterprise 15.6.4. Recently installed .NET Core 2.1.101 SDK from official site

I was expecting .NET Core

8条回答
  •  旧巷少年郎
    2021-02-05 03:31

    In case this helps someone else... After installing VS 15.9.2 my project that was working fine with 2.2 preview-3 stopped working. VS could not see the preview SDK. I could build the solution using dotnet.exe but not VS.

    To solve this I created a global.json at the root folder of this solution pointing to the preview sdk. That allowed VS to see the preview version.

    This is a change of behavior in VS between 15.8.x and 15.9.x.

    To create the global.json you can navigate to the desired folder and type this:

    dotnet new globaljson

提交回复
热议问题