[英]None worked - Error NETSDK1045: The current .NET SDK does not support targeting .NET 6.0
I started getting error: Error NETSDK1045: The current .NET SDK does not support targeting .NET 6.0我开始收到错误:错误 NETSDK1045:当前 .NET SDK 不支持定位 .NET 6.0
Visual Studio Version:视觉工作室版本:
I have followed lot of posts about:我关注了很多关于:
none of the solutions worked.没有一个解决方案奏效。
'dotnet info outout' 'dotnet 信息输出'
Any help任何帮助
Referring toAnnouncing .NET 6 :参考宣布 .NET 6 :
.NET 6 is supported with Visual Studio 2022 and Visual Studio 2022 for Mac. Visual Studio 2022和 Visual Studio 2022 for Mac 支持 .NET 6。 It is not supported with Visual Studio 2019 , Visual Studio for Mac 8, or MSBuild 16. If you want to use .NET 6, you will need to upgrade to Visual Studio 2022 (which is also now 64-bit). Visual Studio 2019、Visual Studio for Mac 8 或 MSBuild 16 不支持它。如果要使用 .NET 6,则需要升级到 Visual Studio 2022(现在也是 64 位)。
If you want to use .NET 6 you will need to update to Visual Studio 2022, as it is not supported in Visual Studio 2019.如果要使用 .NET 6,则需要更新到 Visual Studio 2022,因为 Visual Studio 2019 不支持它。
In this Developer Community issue , Microsoft have stated:在这个开发者社区问题中,微软已经声明:
We have no plans to support .NET 6 in earlier versions of VS.我们没有计划在早期版本的 VS 中支持 .NET 6。 The general reason is that we add features to VS in order to support newer features in the runtime, languages, and libraries.一般的原因是我们向 VS 添加功能是为了支持运行时、语言和库中的新功能。 It's not practical to backport those.向后移植这些是不切实际的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.