只需将新的类库(.net Core)项目添加到我的解决方案中就会产生两个错误:
错误 NU1002 项目 xxx.Web.Services 中的依赖项 xxx.Web.Services 1.0.0 不支持框架 DNX,版本=v4.5.1。
错误 NU1008“netstandard1.5”是不受支持的框架。
project.json 文件内容:
{
"version" : "1.0.0-*",
"dependencies" : {
"NETStandard.Library" : "1.5.0-rc2-24027"
},
"frameworks" : {
"netstandard1.5" : {
"imports" : "dnxcore50"
}
}
}
Run Code Online (Sandbox Code Playgroud)
Project.lock.json 文件内容:
{
"locked" : false,
"version" : 2,
"targets" : {
"DNX,Version=v4.5.1" : {
"NETStandard.Library/1.5.0-rc2-24027" : {
"type" : "package"
}
},
"DNX,Version=v4.5.1/win7-x86" : {
"NETStandard.Library/1.5.0-rc2-24027" : {
"type" : "package"
}
},
"DNX,Version=v4.5.1/win7-x64" : {
"NETStandard.Library/1.5.0-rc2-24027" : {
"type" : …Run Code Online (Sandbox Code Playgroud)