toddams / RazorLight

Template engine based on Microsoft's Razor parsing engine for .NET Core
Apache License 2.0
1.52k stars 259 forks source link

Creating DI Extension + .NET Framework assembly directory format fix #356

Closed Basyras closed 4 years ago

Basyras commented 4 years ago

Creating Extension that allows inject all RazorLightEngine dependecies Found bug when using .Net Framework project (#355) wich can be easily solved when dependency injection is used to create RazorLightEngine so ... i did it? Usage

        services.AddRazorLight()
            .UseMemoryCachingProvider()
            .UseFileSystemProject(root)
            .UseNetFrameworkLegacyFix();