Slow Builds in DotNet

S

sippyuconn

Hi

Have a solution with about 100 projects and I am using Visual Studio 2008
with SP1and Resharper . Once I start VS and after I compile 2-3 times - I
notice in In Windows Task Manager devenv.exe sucking up the Memory Usage from
200,000 k to 900,000 k - I usually close Visual Studio and startup again to
clear the Memeory Usage. I am using SNK so I usally need to build the whole
solution when I make changes.

Any ideas what is going on or how to solve problem ???

Thanks
 
B

Benjamin Crisp

It takes a lot of resources to build solutions (particularly web). You may
really need to think about adding more memory and upgrading your cpu /
harddrive to get better performance.
 
H

Hongye Sun [MSFT]

Thanks for Benjamin's answer. I agree that upgrading CPU, memory and
harddrive will definitely improve the performance. In addition, I want to
provide some suggestions other than hardware to sippyuconn.

1. Separate into multiple solutions
100 projects are usually too big for a solution. Usually, the build
performance can be improved by separating them into multiple solutions. The
separation can be done in following way:
Separate common utility code from module specific code, change from project
reference to DLL reference.
Separate different modules into different solutions
Keep the one solution for all projects and let the developer to choose
which one to use.

An example after separation will look like:
SolutionAll.sln
CommonFramework.sln
Finance.sln
Logistic.sln
CRM.sln
Websites.sln

2. Disable third party add-in
Resharper will keep code information. It is possible that it can cause big
memory usage. In order to verify it, please try to open the solution by
opening VS command prompt and type "devenv.exe /safemode" and try building
again.

3. Improving website build performance
Follow the instructions in this link:
http://weblogs.asp.net/scottgu/archive/2006/09/22/Tip_2F00_Trick_3A00_-Optim
izing-ASP.NET-2.0-Web-Project-Build-Performance-with-VS-2005.aspx

Please let me know if they work for you. Thanks.

Regards,
Hongye Sun ([email protected], remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top