加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-core – 在.Net 5 Core beta2中找不到System.Convert

发布时间:2020-12-16 06:33:43 所属栏目:asp.Net 来源:网络整理
导读:我们最近将我们的MVC 6项目升级到beta2,而.Net Core抱怨它无法使用System.Convert.有人能告诉我这个被移动了吗? 我的项目JSON包含以下Core: "aspnetcore50": { "dependencies": { "System.Runtime": "4.0.20-beta-22416","System.Threading.Tasks": "4.0.1
我们最近将我们的MVC 6项目升级到beta2,而.Net Core抱怨它无法使用System.Convert.有人能告诉我这个被移动了吗?

我的项目JSON包含以下Core:

"aspnetcore50": {
    "dependencies": {
        "System.Runtime": "4.0.20-beta-22416","System.Threading.Tasks": "4.0.10-beta-22416","System.Net.Http": "4.0.0-beta-22416","Newtonsoft.Json": "6.0.6.0","System.Collections": "4.0.10-beta-22416"
    }
}

解决方法

您可以使用非官方 package search website查看特定API的包.

如果您正在使用CoreCLR(aspnetcore50),System.Convert在System.Runtime.Extensions中

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读