The Current .Net SDK does not support targeting .N

2019-06-16 06:11发布

This question already has an answer here:

I have some projects in the preview version of .net core 2.2 preview 3. It was working fine until i updated my VS Studio Community Edition to Version 15.9.2. After that targeting .net core 2.2 preview is no longer possible. When i do dotnet --list-sdks I get a list of the SDKs installed including 2.2.100-preview3.

SDKs Installed

After updating VS Studio, the list now only shows VS Set Target Framework

I have followed similar questions but could not resolve the issue. Any pointers?

1条回答
贪生不怕死
2楼-- · 2019-06-16 06:44

https://developercommunity.visualstudio.com/content/problem/387549/net-22-loast-afte-upgrading-to-1592.html

seems that the latest release turns off the use of preview, "Use previews of the .NET Core SDK" option under menu -> Tools -> Options -> Projects and Solutions -> .NET Core

go here to turn it back on.

查看更多
登录 后发表回答