Reputation: 878
In single solution we having 100 projects, if we build solution its taking lots of time to build. I want to know do we have options to increase speed of visual studio build process.
Language used for development c#.
Upvotes: 3
Views: 923
Reputation: 6607
Ensure the anti-virus is not interfering with the build. Following instructions are for Windows Defender on Windows 10 22H2 (should be similar for other AV and Windows 11):
For my Visual Studio 2008 C# project, build times reduced from >5 minutes to ~10 seconds.
Upvotes: 0
Reputation: 4555
A lot of the time in a large solution like that is copying dependencies around to all the various bins. You can shorten the time significantly by pointing all of the outputs to the same directory rather than the local bins.
Upvotes: 0
Reputation: 93571
For local development builds we created a Visual Studio Addin that changes Project references
to DLL references
and unloads the unwanted projects (and an option to switch them back of course).
Our builds now only take seconds when we are working on only a few projects at a time. We can also still debug the additional projects as it links to the debug DLLs. The tool typically takes 10-30 seconds to make a large number of changes, but you don't have to do that often.
Upvotes: 3