How do you compile C#?

后端 未结 14 1902
日久生厌
日久生厌 2021-01-18 15:11

So, I was wondering how to compile C#. I have Windows 7 Enterprise. Is there a built-in program or do I have do download one?

If I have to download one, what do you r

14条回答
  •  南方客
    南方客 (楼主)
    2021-01-18 15:41

    For any real development, an IDE is preferable. Microsoft offers the Visual Studio Express edition for free, which has everything you need to get started with C#.

    However, you can compile using just the command line compiler (csc.exe), which is included with the framework.

    It should be located in the .NET installation dir; for instance on my machine for .NET 4, 64 bit version, I have a csc.exe in:

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319
    

提交回复
热议问题