I was just looking at the project.json
file in one of my ASP.NET Core projects and noticed there are two different areas to list dependencies.
One inside the frameworks
node and the other is a dependencies
node. Why/when would/should you place the dependencies in one location over the other?
{
"version": "1.0.0-*",
"description": "My Class Library",
"authors": [ "" ],
"tags": [ "" ],
"projectUrl": "",
"licenseUrl": "",
"frameworks": {
"dotnet5.4": {
"dependencies": {
"Microsoft.CSharp": "4.0.1-beta-23516",
"System.Collections": "4.0.11-beta-23516",
"System.Linq": "4.0.1-beta-23516",
"System.Runtime": "4.0.21-beta-23516",
"System.Threading": "4.0.11-beta-23516"
}
}
},
"dependencies": {
"EntityFramework.MicrosoftSqlServer": "7.0.0-rc1-final"
}
}