My blog has moved. This post is now located at: http://jason.whitehorn.ws/2007/12/10/Using-ASPNET-MVC-From-Visual-Web-Developer-Express-2008.aspx
Today marked the released of the first preview of MVC for ASP.NET
. While it works just fine from the free Visual Web Developer Express 2008
, this release is missing a project template to help you get up an running quickly.
So, I have thrown together a project template to allow you get get starting using MVC from VWD Express. Unlike VWD Express' big brother, VWD Express seems unable to create Web Application, only Web Sites. So this template has a slightly modified layout from the one available from Visual Studio.
Since Web Site projects can only arbitrarily host classes in the App_Code directory, I have placed the Models and Controllers there. The Views are located in an appropriately named directory off of the site root.
There are two versions of this template, one for C# and one for VB.NET.
ASP.NET MVC Web Site For C#
ASP.NET MVC Web Site For VB.NET
Download the template of your choice to the Visual Studio 2008\Templates\ProjectTemplates\Visual Web Developer directory located in your "My Documents" directory. After doing so, simply start VWD Express and you will notice a new template available when you go to create a new web site.
This was just something that I threw together really quickly, and is not intended to be a demonstration of MVC. It is simply a starting point for getting started quickly with MVC. If you should encounter any difficulties with this, please let me know.