编译错误

Severity Code Description Project File Line Suppression State
Error NETSDK1045 The current .NET SDK does not support targeting .NET Core 3.0. Either target .NET Core 2.1 or lower, or use a version of the .NET SDK that supports .NET Core 3.0. TestApp C:\Program Files\dotnet\sdk\2.1.504\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets 137

官方只提供了 .net core 2.2

https://dotnet.microsoft.com/download

仔细查看后,发现置顶了preview 

打开project,查看项目的target framework,有install other frameworks的选项

https://dotnet.microsoft.com/download/visual-studio-sdks?utm_source=getdotnetsdk&utm_medium=referral

.NET Core 3.0.0 Preview 2 - January 29, 2019

https://github.com/dotnet/core/blob/master/release-notes/3.0/preview/3.0.0-preview2.md

解决方法

安装 dotnet-sdk-3.0.100-preview-010184-win-x64.exe

打开preview的开关

安装vs2019

To create or open applications targeting .NET Core 3.0, Visual Studio 2019 or newer is required. Click the following link to download the latest version of Visual Studio 2019. If you are after an offline installation follow these instructions on how to install offline.

最新文章

  1. Linux tar文件打包
  2. dropzonejs中文翻译手册 DropzoneJS是一个提供文件拖拽上传并且提供图片预览的开源类库.
  3. PyQt之布局&无边框&信号
  4. Codeforces Round #216 (Div. 2) B. Valera and Contest
  5. Selenium自动化测试项目案例实践公开课
  6. Ubuntu主题美化--使用WPS风格
  7. ngrok 2016版
  8. mysql 相关环境配置
  9. 关于 yii 验证码显示, 但点击不能刷新的处理
  10. C# 知识点回顾
  11. Troubleshooting "Global Enqueue Services Deadlock detected" (Doc ID 1443482.1)
  12. struct 和typedef struct的区别
  13. Vuejs技术栈从CLI到打包上线实战全解析
  14. 理解PHP的垃圾回收机制
  15. 多线程(4)Task
  16. WIN10 企业版 LTSC 激活
  17. 最全的MonkeyRunner自动化测试从入门到精通(3)
  18. sql 同一个字段在查询结果中出现两次
  19. Codeforces976E Well played! 【贪心】
  20. python_day1_python第一个程序 hello world

热门文章

  1. 在腾讯云服务器上体验Docker
  2. oneThink发生错误,获取当前执行的SQL语句!
  3. 【MySQL】为什么不要问我DB极限QPS/TPS
  4. javascript飞机大战-----008积分
  5. pandas的drop函数
  6. 【ArcGIS for SivlerLight api(3)】基础图层增删改查
  7. Python开发【数据结构】:算法(二)
  8. 使用celery之了解celery(转)
  9. windos 查看指定端口,将指定进程杀死
  10. django基础之Ajax、分页、cookie与session