R – Can you create an ASP.NET MVC website without the project


Is it possible to create a MVC website without having to create a MVC web application via Visual Studio? Basically I just want it to be a simple website and not to have to recompile it in VS. I want to develop it as a 'Web Site' on a test server and connect with front page extensions in VS express. If I copy the files from a MVC Application, remove the namespace of the project in the files I just get errors:



using System.Web;
using System.Web.Mvc;
using System.Web.UI;

public partial class MyDefaultPage : System.Web.UI.Page
public void Page_Load(object sender, System.EventArgs e)

Parser Error Message: Could not load type '_Default'.

Any ideas much appreciated.

Best Solution

ASP.NET MVC controllers are compiled .NET classes. You could edit the source and compile via the command line, but you'll still need to compile the source code in order for it to work.

I've never used front page extensions, but I doubt that they would be helpful when working with ASP.NET MVC.