I used to ask this question and got an answer that worked. In order for ASP.Net 5 to reference the regular .NET class library for the .NET Framework 4.5, you must remove the "dnxcore50": {} 'link from the project.json file.
Great. This worked with a simple ClassLibrary project that did nothing.
Now I'm trying to do this with more complex class libraries. Class libraries that reference other NuGet packages (for example, HtmlAgilityPack) and the same method do not work.
This is very unpleasant. I'm a little dumbfounded that just a link to the class library no longer works in the new version of ASP.Net.
One of the “functions” that seems to be removed is the ability to refer to a compiled DLL for a project that is not in your solution. The Browse button has disappeared from the Add Link dialog box in an ASP.Net 5 project:

While the classic project has a browse button:

Why? How can I refer to the class library, which is located on my machine, but I do not want to include in my project?
source
share