Installing package that do not support .NetStandard

97 views Asked by At

If a package is not supported by .NetStandard but the portable-net45 or netcore45. How can we install such package in .NetStandard targeting project.

1

There are 1 answers

0
Irshad Ali On BEST ANSWER

we can install packages by using this small hack.

In project.json: in netstandard framework json. use imports key like below.

"frameworks": {
    "netstandard1.5": {}
  }


"frameworks": {
    "netstandard1.5": {
      "imports": "portable-net45+netcore45+wp8"
    }
  }