You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to compile templates that inherit from TemplateBase and TemplateBase<T>, and I'm getting the following error:
More details about the error:
- error: (15, 18) The name 'inherits' does not exist in the current context
Temporary files of the compilation can be found in (please delete the folder): C:\Users\Tim.Long\AppData\Local\Temp\RazorEngine_xtuhlpzp.f5j
The template we tried to compile is:
------------- START -----------
@using RazorEngine.Templating
@inherits TemplateBase
<p>Hello world</p>
------------- END -----------
As you can see, the template is pretty minimal. I'm using the EmbeddedResourceTemplateManager in case that's relevant. This seems pretty broken so I'm wondering if there is just something I've missed about how to set things up?
The text was updated successfully, but these errors were encountered:
I'm trying to compile templates that inherit from
TemplateBase
andTemplateBase<T>
, and I'm getting the following error:As you can see, the template is pretty minimal. I'm using the
EmbeddedResourceTemplateManager
in case that's relevant. This seems pretty broken so I'm wondering if there is just something I've missed about how to set things up?The text was updated successfully, but these errors were encountered: