I have an ASP.NET core web app targeting full .net framework and a reference to class libraries that are targetiing same version of .net framework as asp.net core web app.
In a razor view that makes a reference to a class in the class library I get this error :
The type 'XXX' is defined in an assembly that is not referenced. You must add a reference to assembly 'XXX'
However in the controller action that returns this view I can access the class fine.
Am I missing something.