Asp.net core ';依赖关系';和';框架依赖关系&x27;在project.json中?
在Asp.net core ';依赖关系';和';框架依赖关系&x27;在project.json中?,asp.net-core,dnx,Asp.net Core,Dnx,在依赖项或框架依赖项中加载包有什么区别 而且。。。现在只能使用dnxcore50吗?(asp.net 5 beta6) 依赖关系: { "description": "Lib", "version": "1.0.0-*", "dependencies": { "EntityFramework.SqlServer": "7.0.0-beta6" }, "frameworks": { "dnx451": { }, "dnxcore50": { }
依赖项
或框架依赖项
中加载包有什么区别
而且。。。现在只能使用dnxcore50吗?(asp.net 5 beta6)
依赖关系:
{
"description": "Lib",
"version": "1.0.0-*",
"dependencies": {
"EntityFramework.SqlServer": "7.0.0-beta6"
},
"frameworks": {
"dnx451": { },
"dnxcore50": { }
}
}
}
{
"description": "Lib",
"version": "1.0.0-*",
"dependencies": {
},
"frameworks": {
"dnx451": { },
"dnxcore50": {
"dependencies": {
"EntityFramework.SqlServer": "7.0.0-beta6"
}
}
}
}
框架依赖关系:
{
"description": "Lib",
"version": "1.0.0-*",
"dependencies": {
"EntityFramework.SqlServer": "7.0.0-beta6"
},
"frameworks": {
"dnx451": { },
"dnxcore50": { }
}
}
}
{
"description": "Lib",
"version": "1.0.0-*",
"dependencies": {
},
"frameworks": {
"dnx451": { },
"dnxcore50": {
"dependencies": {
"EntityFramework.SqlServer": "7.0.0-beta6"
}
}
}
}
依赖项
适用于框架
下列出的所有框架<代码>依赖项位于该特定框架的特定框架下。这意味着您可以为框架X拉取依赖项A,但如果您愿意,不能为框架Z。因此,如果我的project.json中只有一个框架,两个“依赖项”是相同的?是的,它们是相同的。只有当您有多个框架并且希望每个框架具有不同的依赖关系时,特定于框架的依赖关系才有用