ASP.NET 5 Class Libraries (Package) and target frameworks
|Added at||2016-01-08 15:01|
In the simple case that I create a new Solution and then add a new ASP.NET 5 web app and a Class Library (Package) to the solution.
There are the default framework references for each project:
If I try to add a reference from the web app to the class library there are issues. It adds successfully, but from the web app when I go to create a new instance of a class from the library it can't find anything. I believe this is because the class library must support the frameworks in the project.
Do I really need to add all 4 frameworks to my class library?
Shouldn't I be able to only use dnxcore50 and dnx451 in the class library and still use the System namespace? As soon as I remove net451 and dotnet5.4 I get a bunch of errors in regards to the System namespace.