0
我最近更新我的版本的NuGet的使用升级到3.4.4的NuGet-RTM-最终破裂包恢复
nuget update -self
现在,我已经做到了这一点3.4.4-RTM决赛,nuget restore MySolution.sln
失败出现以下错误:
Error reading 'c:\...MySolution\MyProject.NetCore.Tests\project.json' at line 15 column 23 : TODO: unknown keyword platform
TODO: unknown keyword platform
以下是project.json的相关部分。当我删除平台说明符时,构建失败:
"frameworks": {
"netcoreapp1.0": {
"dependencies": {
"Microsoft.NETCore.App": {
"type": "platform",
"version": "1.0.1"
}
}
}
},
为了解决这个问题,我需要做些什么?
VS告诉我,我有NuGet 3.5.0。你能升级到那个吗? – svick
@svick这是我通过'nuget update -Self'得到的nuget的命令行版本。你知道是否有办法获得命令行3.5版本? – ChaseMedallion
现在我想到了:你为什么要调用'nuget restore'?使用'dotnet restore'或Visual Studio。 – svick