CSC version at computer

前端 未结 2 969
南笙
南笙 2021-01-06 00:48

I making fast changes in my code via Visual Studio Code. As you know it doesn\'t have build-in compiler so I using CSC via CMD.

It\'s working good only for ( code &l

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-06 01:20

    CSC is no longer used for compilation of C# 6+. The new standard compiler is Roslyn now.

    In fact, csc itself tells you this:

    This compiler is provided as part of the Microsoft (R) .NET Framework, but only supports language versions up to C# 5, which is no longer the latest version. For compilers that support newer versions of the C# programming language, see http://go.microsoft.com/fwlink/?LinkID=533240

    You need to download Roslyn (either using the link above and compiling it for yourself using MSBuild, or via NuGet at http://www.nuget.org/packages/Microsoft.CodeAnalysis.CSharp/) and use it to compile your programs from now on.

提交回复
热议问题