Building a MVC2 Template, Part 1, Introduction
Mar 22
.Net, Development Asp.Net Mvc, Fluent NHibernate, jQuery, Nehemiah Project, NHibernate, Ninject, Subversion, TeamCity 6 Comments
In this series of blog posts I will attempt to document all my efforts, from start to finish, for building a reusable Asp.Net Mvc2 Application Template. My goal in this endeavor is to establish a Visual Studio application template that can be easily used upon request and uses best practices and technologies.
Some of the technologies being used are not the absolute latest. For this project I plan on using the following:
- Visual Studio 2008
- Asp.Net Mvc2
- T4 Templates with T4Toolbox
- WinMerge
- Subversion with VisualSVN, TortoiseSvn, and AnkhSVN
- TeamCity
- Ninject
- jQuery
- NHibernate
- Fluent NHibernate
- plus who knows what else will make it into the project?
My goals for the end of the project are:
- To have a Visual Studio application template that facilitates rapid application development with these features
- Automated code generation based upon the designed data model
- Extendable membership/role/profile providers
- Data validation on client and server
- Single code updates to the core are reflected in all releases
- Complete suite of test cases
- A coding utopia!
- Automated builds from version control
- Automated deployment from version control
By the end of the project, we’ll see how close I can get and if other more pressing projects trump this one.
In the next installment we’ll setup Subversion and add the initial auto-generated application code to source control.













Mar 23, 2010 @ 10:56:03
Great idea. Are you planning on a very basic template or a more robust one like MVCTurbine?
It would be great to include Teleriks ASP.NET MVC Controls and MVCContrib.
Mar 23, 2010 @ 11:47:42
I’m planning on a fairly simple template. I was kicking around the idea last night of possibly adding jqGrid and MVCContrib. I’ll look at the Teleriks controls too.
Mar 25, 2010 @ 02:32:20
Automatic minification and combining of css and js files would be good.
Mar 25, 2010 @ 09:34:17
Luke, I have been mulling over the same thought. I suspect this will make it into the template.
Apr 06, 2010 @ 03:33:15
For minifcation, I thin Justin Etheredges Bundler is a good choice. Its available on Github: http://github.com/jetheredge/bundler/downloads
Apr 06, 2010 @ 09:36:50
Alexander, that’s the one I have bookmarked to revisit. Right now I’m working through the code for the custom providers.