RazorLight #452
Unanswered
billbrinck
asked this question in
Q&A
RazorLight
#452
Replies: 1 comment
-
That's not an official package. You can see what they are doing differently from us here: https://www.fuget.org/packages/RazorLight.NetCore3/3.0.2 and https://www.fuget.org/packages/RazorLight/2.0.0-rc.3 and comparing the nuspec files. The latest rc.3 actually has support for debugging why you can't find a template. Read the release notes. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to generate HTML based on a .cshtml file, which is embedded:
<EmbeddedResource Include="Templates\ReportTemplate.cshtml" />However, from RazorLight I always get the following Exception:
But when I check the embedded resources, I can clearly see the embedded resource :
string[] files = Assembly.GetExecutingAssembly().GetManifestResourceNames();filescontains: My.Namespace.Application.Templates.ReportTemplate.cshtmlHere is my code to generate the PDF:
My parameters are:
Key: My.Namespace.Application.Templates.ReportTemplate.cshtml
I am using
RazorLight.NetCore3Version3.0.2Beta Was this translation helpful? Give feedback.
All reactions