Project can not find template with key
MikeOtown opened this issue · 3 comments
MikeOtown commented
.Net 6.0
When I call engine.CompileRenderAsync() I'm getting
TemplateNotFoundException: Project can not find template with key XXX
However,
typeof(myclass).Assembly.GetManifestResourceNames().Where(kn => kn == "XXX").First()
returns the Resource Name
jzabroski commented
Are you using embedded resource project or filesystem project or something else?
MikeOtown commented
Hi - It's been a while since I worked on this, but I think it was a Class Library Project with embedded resources. However, I'm no longer using RazorLight so can't really work on this issue at this time.
jzabroski commented
OK, I will close this issue. Thanks for your fast follow up.