If I build my current .NET projects with Visual Studio 2014 using Roslyn, can I improve build performance?

I read the Visual Studio 2014 CTP announcement and it says it uses Roslyn by default: http://blogs.msdn.com/b/csharpfaq/archive/2014/06/03/visual-studio-14-ctp-now -available.aspx

So, I am assuming that my current .NET projects (ASP.NET MVC projects to be precise) will be compiled using Roslyn by default.

The question is: will my projects build faster, at least likely? I am especially interested in incremental compilation, for example if I only change the comma I would really like Roslyn to be smarter than the current MSBuild and build the project faster.

+3


source to share


1 answer


The answer is "It depends."

It mainly depends on the size of the solution and your machine. Roslyn compilers will cache loads of metadata between projects and will compile methods in parallel. These two things usually mean you will get better performance on multi-project solutions, especially on multi-core machines.



For your specific question, it is unlikely that you will notice a difference in a small project change without the case of dependencies.

+7


source







All Articles