How do I compile Razor Views in .NET Core (CSProj)?

In .NET Core (project.json SDK Tooling), compiling Razor views was rather simple. Add this to your project.json: { “dependencies”: { “Microsoft.NETCore.App”: { “version”: “1.1.0”, “type”: “platform” }, “Microsoft.AspNetCore.Mvc”: “1.1.0-preview1-final”, “Microsoft.AspNetCore.Razor.Tools”: { “version”: “1.1.0-preview4-final”, “type”: “build” }, “Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Design”: { “version”: “1.1.0-preview4-final”, “type”: “build” } }, “tools”: { “Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Tools”: { “version”: “1.1.0-preview4-final” } } } And add […]