Reputation: 111
I'd like to change the build order of projects in my C# solution, without having to rely on project dependencies.
Reason: solution takes approx 1 min 30 secs build locally. This is a little much, especially if you're making lots of minor changes.
My approach to fixing this is to have a mapped share (my R:) pointing to "..\ReferencedAssemblies". Each projects outdir points to "..\ReferencedAssemblies" Any cross-project references are picked up from R:\assemblyName.dll, with Copylocal=false. This means that the dependent projects don't need to be rebuilt if the changes are only made to a single project.
I'm finding that this approach is saving a lot of local build time.
The final issue is changing the build order of the projects in the solution as a whole without relying on the dependencies. Any idea on how to do this?
Thanks in advance. Padda
Upvotes: 1
Views: 987
Reputation: 1661
The order in which each project in your solution is built is determined by the inter-project dependencies, and is done automatically (excluding external dependencies). If your solution is taking a long time to build for small changes, then it is proably becuase code that has't changed is being re-compiled unnecessarily. Try making your solution more modular and remove unrequired dependencies.
Upvotes: 1