Is it possible to install a C# compiler without Visual Studio?

后端 未结 11 2228
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-29 21:32

I want to build projects from the command line. Is it possible to deploy a C# compiler without installing Visual Studio?

11条回答
  •  醉话见心
    2020-11-29 22:06

    Assuming you have Visual Studio installed with C# included. Also, assuming you want latest version.

    1. Find the path to your VS installation. Call it VSPath.
    2. The CSC Compiler will be at VSPath\MSBuild(MSBuild-Version)\Bin\Roslyn

提交回复
热议问题