toddams/RazorLight

Use Microsoft.Extensions.FileProviders.EmbeddedFileProvider

Opened this issue · 2 comments

What about the EmbedRazorGenerateSources property from the Razor SDK? According to the documentation:

When true, adds RazorGenerate ( .cshtml ) items as embedded files to the generated Razor assembly. Defaults to false.

RazorLight can't get these .cshtml files.

We're not generating a Razor Assembly as such, so you are correct, there is nothing to get to. This issue is about standardization and writing less code and using common interfaces. The aim of this project is not to re-implement all of ASP.NET Core Razor. Microsoft literally had a team of 4 people working on Razor for years.