/RazorTemplateClassLibrary

Demonstrates amendments to C# class library to enable IDE support for Razor templates.

Primary LanguageC#MIT LicenseMIT

RazorTemplateClassLibrary

Updated for MVC5

Demonstrates amendments to C# class library to enable IDE support for Razor templates.

If you wish to create, edit and use Razor .cshtml (or .vbhtml) format documents outside of an ASP.NET web application, it is possible. This project shows the steps required to make it happen.

This library should be used in combination with my blog post ASP.NET Razor Views in Class Libraries on Wordpress.

I plan to create a commit at each set of changes, so you can see the finished product in the latest release and step back though each commit to see the changes made.

Update: This project was created in VS2013 but it can work in VS2012. However, since it uses MVC v5 and Razor v3 you must install the ASP.NET and Web Tools 2013.1 for Visual Studio 2012 for Intellisense to work in VS2012. This would be required for MVC5/Razor3 support anyway.