RazorEngine icon indicating copy to clipboard operation
RazorEngine copied to clipboard

encounter errors when use @Include in template

Open nguyenngocthuan opened this issue 2 years ago • 0 comments

RazorEngine.Templating.TemplateCompilationException: 'Errors while compiling a Template. Please try the following to solve the situation:

  • If the problem is about missing/invalid references or multiple defines either try to load the missing references manually (in the compiling appdomain!) or Specify your references manually by providing your own IReferenceResolver implementation. See https://antaris.github.io/RazorEngine/ReferenceResolver.html for details. Currently all references have to be available as files!
  • If you get 'class' does not contain a definition for 'member': try another modelType (for example 'null' to make the model dynamic). NOTE: You CANNOT use typeof(dynamic) to make the model dynamic! Or try to use static instead of anonymous/dynamic types. More details about the error:
  • error: (17, 18) The name 'inherits' does not exist in the current context

nguyenngocthuan avatar Aug 03 '23 07:08 nguyenngocthuan