What is the purpose of Microsoft.Net.Compilers?

前端 未结 4 2067
灰色年华
灰色年华 2020-12-08 12:27

What is the importance of this compiler? Is it a must have or could do without? What is the purpose of having another compiler anyway, or is it just a futuristic project? A

4条回答
  •  有刺的猬
    2020-12-08 13:08

    The point of the Microsoft.Net.Compilers package is that the compilers distributed with that package will be used for compiling your project, rather than the compiler that comes with .NET Framework or with Visual Studio. The most practical direct benefit is that it allows your projects to use C# 6 features, and then allows those projects to be built on a system that doesn't have a C# 6 compiler installed, for instance on a continuous integration server where you don't want to install the full Visual Studio 2015.

提交回复
热议问题