none
Slow Compilation Time

    Question

  • Org is using TFS and msbuild for a large .Net code base with multiple daily deployments. Our builds fly on dedicated build servers except when the build compiles. This is partly due to the repo architecture, but is there a way to speed up compilation and/or msbuild alternatives that might do a better job?
    Friday, February 02, 2018 3:29 PM

All replies

  • Hi t0ta11ed,

    Thanks for posting here.

    >>>is there a way to speed up compilation and/or msbuild alternatives that might do a better job?

    There is a document about how to improve Visual Studio Build Performance, you can check it for details:

    https://www.codeproject.com/Tips/1042975/Tips-to-Improve-Visual-Studio-Build-Performance

    Hope this helps.


    MSDN Community Support Please remember to click Mark as Answer. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Tuesday, February 06, 2018 9:45 AM
  • We have tried numerous settings, tests, etc. Everything runs pretty fast except for the compilation time, which is around 29 minutes on a Nutanix VM, about an hour on a VMWare VM, and about 15 mins on an physical desktop with a 3+Ghz CPU. This suggests the compilation is synchronus for some reason. We are looking for insight into why this is happening, and what alternatives (third party, etc) that may be better at this than MSBuild that others may have used. Thanks.
    Wednesday, February 07, 2018 2:04 PM
  • You can set the "Logging Verbosity" to the value Diagnostic(Tools->Options->Projects and Solutions->Build and Run->MSbuild project build output verbosity->Diagnostic), then after build, in the output window will show the Task Performance Summary:

    Then you can analyze the output, to learn where the slowness comes from.

    Besides, you can create a new blank project and build check it takes long time, so that we could to know the build time is related to your project or VS/MSBuild.

    Hope this helps.


    MSDN Community Support Please remember to click Mark as Answer. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Friday, February 09, 2018 7:25 AM