Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between 'dependencies' and 'framework dependencies' in project.json?

What is the difference between load a package in dependencies or framework dependencies?

And... Is possible use only dnxcore50 nowadays? (asp.net 5 beta6)

dependencies:

{
  "description": "Lib",
  "version": "1.0.0-*",

  "dependencies": {
    "EntityFramework.SqlServer": "7.0.0-beta6"
  },

  "frameworks": {
    "dnx451": { },
    "dnxcore50": { }
    }
  }
}

framework dependencies:

{
  "description": "Lib",
  "version": "1.0.0-*",

  "dependencies": {
  },

  "frameworks": {
    "dnx451": { },
    "dnxcore50": {
      "dependencies": {
          "EntityFramework.SqlServer": "7.0.0-beta6"
       }
    }
  }
}
like image 594
unairoldan Avatar asked Nov 26 '25 20:11

unairoldan


1 Answers

dependencies are for all frameworks listed under frameworks. dependencies under a specific framework for that specific framework. This means that you can pull dependency A for framework X but not for framework Z if you want to.

like image 131
tugberk Avatar answered Nov 30 '25 23:11

tugberk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!