Here is a short example: IRazorLightEngine engine = EngineFactory.CreatePhysical('Path-to-your-views') // Files and strong models string resultFromFile = engine.Parse('Test.cshtml', new Model('SomeData')) // Strings and anonymous models string stringResult = engine. Visual Studio for Mac 2019 v8.
NET Core (NetStandard1.6) - but that's exactly what you need. It has no redundant dependencies, like ASP.NET MVC parts and can be used in console applications. From the hand of CVP Amanda Silver we get some news that the next version of Visual Studio will incorporate, which we already know officially as Visual Studio 2022. We’re excited for you to give it a try Enabling the new Razor editor To enable the new experimental Razor editor in Visual Studio 2019 16. Visual Studio 2022 is here (5 features that you will love) We have already reached the middle of the year 2021 and Microsoft does not leave for tomorrow what it can announce today. Recently I've created a library called RazorLight. With the release of Visual Studio 2019 16.7 Preview 4, you can now try out our new experimental Razor editor for local development with MVC, Razor Pages, and Blazor.