GitXplorerGitXplorer
c

RazorTemplateClassLibrary

public
6 stars
3 forks
0 issues

Commits

List of commits on branch master.
Unverified
db8a1480d6e64cffc7c46db198ada42f9f4787f1

Added Nuget packages for Razor, WebPages, Mvc and Infrastructure

cconficient committed 11 years ago
Unverified
c05afe436b82973bd8cae7b1d191a9496e33acf8

Added ProjectTypeGuids section

cconficient committed 11 years ago
Unverified
26c6d6f5900e13d42821bce2170374c96232b633

Updated the README and added gitattribs

cconficient committed 11 years ago
Unverified
cac4fb6ed88daaf0e3e48f74246f8656210735bf

Initial version of the C# library with no changes

cconficient committed 11 years ago
Unverified
8f7758a383647a3d95d4cb45799f2954f9a391bf

Initial commit

cconficient committed 11 years ago

README

The README file for this repository.

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.