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

后端 未结 11 2233
爱一瞬间的悲伤
爱一瞬间的悲伤 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:11

    Yes, if you have the .NET SDK, it's there. For example,

    C:\WINDOWS\Microsoft.NET\Framework\v[your version number]\csc.exe
    

    msbuild.exe should be there too, and you can use that to build project (.csproj) files.

提交回复
热议问题