Faster Web Development

When you make changes to your web site, even just changing the web.config file, you can end up recompiling the entire web site.  This can be a huge problem when you are developing a large web site.

A feature that we have available to us in VS 2005/2008 allows us to turn off the recompile on run, which can significantly speed up the development process.

To turn off the recompile on run, right click the Project branch in solution explorer and select “Property Pages” from the menu.

In the resulting dialog, select “Build” from the list on the left.

In the “Before running startup page:” dropdown, select, “Build Page” or, “No Build”

Now, when you run the application, the browser will start right up.

Why does this work?

The Build on startup only verifies your code, it really has no impact on the resulting code.  ASP.NET code gets compiled on the fly when a page is accessed.  So, most of the time, especially on an established project, the build on startup is just wasting time.

If you ever get to a point where you really need to build prior to running, maybe to find some errors in your syntax, you can always trigger the build manually from the menu.

Turning this feature on will significantly speed the development of a DotNetNuke module since we have to build the entire DNN site if we have it turned on.

Related Post

  • DotNetNuke Modules – Creating Base ModulesDotNetNuke Modules – Creating Base Modules
    Now that we have DotNetNuke installed into Visual Studio we can go ahead and create our first modules. Actually, creating the modules is pretty simple. But it is even easier to do it wrong, which...
  • .NET Image Scaling in CSharp.NET Image Scaling in CSharp
    One feature of .NET that I use regularly is image scaling.  I typically use this on web sites that need image upload capabilities.  I assume the user is going to send me an image that is...
  • How to properly access controls in the Master PageHow to properly access controls in the Master Page
    One of the great new features in ASP.NET 2.0 has been the ability to use master pages to layout the common elements of the web site.  This certainly works better than top and bottom include files o...
  • ASP.NET Three Tiered w/ Client Side DataASP.NET Three Tiered w/ Client Side Data
    Last week, I created a tool that would allow the user to upload an XML file and have the web site process the file and return a report. All pretty standard stuff until you realize that if you want...
  • 404 Errors – Retrieving the Bad URL404 Errors – Retrieving the Bad URL
    A few weeks ago, I wrote a post describing how to detect that a 404 error had occurred in your error handler rather than just detecting that any error had occurred. ASP.NET Application_Error - Det...
Bear