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?)
in class library project, make sure required asp.net mvc nuget package added, same way web project itself.
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
Post a Comment