【发布时间】:2018-12-22 05:41:01
【问题描述】:
我正在尝试更新 xamarim 项目以使用 netstandard2.0。但这会产生以下错误:
严重性代码描述项目文件行抑制状态 错误您的项目未引用“.NETPlatform,Version=v5.0”框架。在 project.json 的“frameworks”部分添加对“.NETPlatform,Version=v5.0”的引用,然后重新运行 NuGet 还原。
这是我的 project.json:
{
"dependencies": {
"Microsoft.NETCore.Portable.Compatibility": "1.0.1",
"NETStandard.Library": "2.0.3",
"Newtonsoft.Json": "11.0.2",
"System.Reactive.Linq": "4.0.0"
},
"frameworks": {
"netstandard2.0": {}
},
"supports": {}
}
【问题讨论】:
-
您需要更大的升级。现在没有人应该使用
project.json,请迁移到包参考。
标签: .net xamarin xamarin.forms compiler-errors visual-studio-2017