We recently upgraded our build system from Update 2 from 2013 to 2015, and our build times have increased dramatically. Our build environment is autonomous, so we run MSBuild from the package (using devpath), and not from the installed location. Looking at the logs, it seems that increasing build time is almost everything in the csc build task. Installing MSBuild on the machine is not affected, although if we run from a fixed location and not from our standalone location, the build time is similar to what we see from 2013. When starting from a fixed location, we can see that joint averaging is used from the message "Using general compilation with the compiler from the directory: C: \ Program Files (x86) \ MSBuild \ 14.0 \ bin". At the moment, we have the impression that enabling general compilation will help with our build time, but we could not get it to work from our standalone environment. Setting "UseSharedCompilation" to true has no effect and does not result in the message above during build.
Is there a way to enable general compilation with Roslyn when starting MSBuild from a path other than the installed location?
source share