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”