RazorEngineCore | .NET6 Razor Template Engine | DevOps library
kandi X-RAY | RazorEngineCore Summary
kandi X-RAY | RazorEngineCore Summary
.NET6 Razor Template Engine. No legacy code. Every single star makes maintainer happy! .
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of RazorEngineCore
RazorEngineCore Key Features
RazorEngineCore Examples and Code Snippets
Community Discussions
Trending Discussions on RazorEngineCore
QUESTION
ASP.NET Core 5 MVC application uses razor engine from https://github.com/adoconnection/RazorEngineCore to render views as strings at runtime.
How to get view ~/Views/Checkout/Order.cshtml
content as string?
I tried
...ANSWER
Answered 2021-Mar-21 at 20:33In your comment reply you wrote this:
How to force view to be included as assembly resource ? It is used only by application as string content to render. It is not regular view, not used to create html page. Is it sufficient to set build action as Embedded Resource. Which path should used to get this resource?
You can either infer the resource stream name yourself, or you can manually specify a name by directly editing your .csproj
file to specify a (I don't know why this element isn't exposed in the Properties window, it really should be). The latter option is better, as the name will remain constant when moving files around).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install RazorEngineCore
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page