Quantcast
Viewing all articles
Browse latest Browse all 132

Adding class libraries to an ASP.NET 5 web application

When adding a class library to an ASP.NET 5 application you might get an error like

“The following projects are not supported as references: – The project ClassLibrary1 has a target framework that is incompatible or has a version higher than the current project and cannot be referenced”

Image may be NSFW.
Clik here to view.
Project reference error

The cause is most likely that when you created the project ClassLibrary1 you selected “Class Library” as the type of project as shown here.

Image may be NSFW.
Clik here to view.
Class Library

Instead, you should have selected “Class Library (Package)”.
Image may be NSFW.
Clik here to view.
Class Library (Package)


Viewing all articles
Browse latest Browse all 132

Trending Articles