How to install the MS C# 6.0 compiler?

前端 未结 1 534
轮回少年
轮回少年 2020-12-11 16:48

I am trying to compile a C# project that someone has created while using C# 6.0 features.

In previous .NET releases, the current C# compiler was automatically instal

1条回答
  •  醉梦人生
    2020-12-11 17:30

    From the Roslyn project on GitHub:

    To install the latest release without Visual Studio, run one of the following nuget command lines:

    nuget install Microsoft.Net.Compilers   # Install C# and VB compilers
    nuget install Microsoft.CodeAnalysis    # Install Language APIs and Services
    

    To get the latest "preview" drop, published about once per month, add the -pre switch to the nuget commands.

    0 讨论(0)
提交回复
热议问题