user3674184
user3674184

Reputation: 5

How can I reduce the build time for an ASP.Net application?

I am using Visual Studio 2010 with ASP.NET 4.0. If I need to run my project I have to press CTRL+F5 and then wait for the SQL Server to run, and then wait for the browser window to open. It really takes along time which is exhaustive especially when it is about debugging.

I understand that when modifying only the design page you can directly refresh your browser to see the changes, but when the modification is on the code behind I am obliged to press CTRL+F5 every time. Are there any other best practices to reduce this amount of time?

Upvotes: 0

Views: 119

Answers (2)

JimMSDN
JimMSDN

Reputation: 480

If you have symbols turned on (in VS Tools | Options | Debugging | Symbols) this can add quite a bit of time to debugging builds. You may want to consider turning it off and only re-enabling it when you need to.

Upvotes: 0

Akram Shahda
Akram Shahda

Reputation: 14771

You have to recompile code every time you change the code. However, in case you have a solution with many projects, you can limit the projects to be recompiled from the Build Configuration Manager. This way you will reduce the time of the build process before your application runs.

Upvotes: 1

Related Questions