c# - Namespace not recognised after adding MVC6 project dependency to class library project -


i have created default mvc6 (.net framework 4.6.1) project. contains valuescontroller. in same solution have added class library (.net framework 4.6.1).

when added reference of mvc6 project class library not able use classes , namespaces.

error cs0246 type or namespace name 'mvc6test' not found (are missing using directive or assembly reference?)

enter image description here

in class library project, make sure required asp.net mvc nuget package added, same way web project itself.

enter image description here

it add various missing assemblies in class library project, system.web.mvc, system.web.razor etc.

note: wondering why need access mvc project within class library. it's other way around.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -