Home » none » Faster Web Development

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 starting with Visual Studio 2005, 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.

Note: This trick only works with Web Applications.  Web Projects still need to be compiled.

Like this Article? Subscribe to get every article sent to your email.

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 […]
  • CSharp checked and uncheckedCSharp checked and unchecked When you create a project in Visual Studio, by default, numbers can be added, multiplied, divided or subtracted in such a way as to create a number too big for the variable that is […]
  • YAGNI – You Aren’t Going To Need ItYAGNI – You Aren’t Going To Need It One of the design principles in software development is to only write what you need today.  This has taken on the moniker of YAGNI (You Aren’t Going To Need It). The question is, […]
  • Principles of Programming ArchitecturePrinciples of Programming Architecture Yesterday I was talking with a friend of mine about a project we have been working on that was written by some other company.  We were speculating why the code was written as it is […]
  • Two CSS Files When Using ASP.NET Themes?Two CSS Files When Using ASP.NET Themes? One of the projects that I'm working on is for a company targeting the Canadian marketplace.  These sites have to be written in both French and English for that country, which means there […]

About Dave Bush

Dave Bush is a Full Stack ASP.NET developer. His commitment to quality through test driven development, vast knowledge of C#, HTML, CSS and JavaScript as well as his ability to mentor younger programmers and his passion for Agile/Scrum as defined by the Agile Manifesto and the Scrum Alliance will certainly be an asset to your organization.