Namespace not recognised after adding MVC6 project dependency to class library project
<p>I have created default MVC6 (.net framework 4.6.1) project. It contains only ValuesController. Also in the same solution I have added Class Library (.net framework 4.6.1). </p>

<p>When I added reference of  MVC6 project to class library I am not able to use any classes and namespaces.</p>

<p>Error   CS0246  The type or namespace name 'mvc6test' could not be found (are you missing a using directive or an assembly reference?)</p>

<p><a href="https://i.stack.imgur.com/gEzfg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gEzfg.png" alt="enter image description here"></a></p>