Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The name 'inherits' does not exist in the current context #603

Open
NameOfTheDragon opened this issue Aug 7, 2024 · 0 comments
Open

The name 'inherits' does not exist in the current context #603

NameOfTheDragon opened this issue Aug 7, 2024 · 0 comments

Comments

@NameOfTheDragon
Copy link

NameOfTheDragon commented Aug 7, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant