Antaris / RazorEngine

Open source templating engine based on Microsoft's Razor parsing engine
http://antaris.github.io/RazorEngine
Other
2.13k stars 578 forks source link

The name 'model' does not exist in the current context #586

Closed mizrael closed 1 year ago

mizrael commented 2 years ago

hi, I am trying to use RazorEngine in my project and enable intellisense. My template is very simple and both compilation and rendering work fine. However, the very moment I add @inherits RazorEngine.Templating.TemplateBase to the top, I get two things:

any idea?

americanslon commented 1 year ago

Any more info on this? Getting same.

mizrael commented 1 year ago

I ended up dumping RazorEngine and moving to a simpler html templating one instead.

americanslon commented 1 year ago

Which one?

mizrael commented 1 year ago

https://github.com/scriban/scriban . My scenario is very simple, I don't really need a lot of functionalities. It's basically a simple report, nothing fancy.