I try to add a namespace to my viewfile (vbhtml) in an mvc project. According to this or this solution it is straight forward using @Imports NamespaceName
. Unfortunately this is not working in my case. My auto-generated (strongly typed view
) file looks as follows:
@ModelType MVC_AdminTry1.Models.Employee
@Code
ViewData("Title") = "Index"
End Code
<h2>Index</h2>
I cannot use the Imports command. Or at least IntelliSense
does not give me any support. Does anyone know why that is?