Skip to content

@model and Visual Studio IntelliSense

Julian Verdurmen edited this page Jul 22, 2021 · 4 revisions

The @model syntax is not supported. See issue 12

If you like to have intelliSense in Visual Studio, you could use @inherits and RazorEngineTemplateBase<T>

For example, instead of writing:

@model MyModel

write this:

@inherits RazorEngineCore.RazorEngineTemplateBase<MyModel>