How do you compile C#?

后端 未结 14 1774
日久生厌
日久生厌 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:52

    You can find the command-line compiler, csc.exe, in \Windows\Microsoft.Net\Framework\vX.Y.

    However, you will probably want to use Visual Studio, Microsoft's world-class IDE.
    You can download the free version.

    0 讨论(0)
  • 2021-01-18 15:55

    For literally compiling C#: Native Image Generator

    Otherwise get Visual Studio.

    0 讨论(0)
  • 2021-01-18 15:55

    Not sure if you can do this by default with Windows 7 Enterprise. At very least you are likely going need visual studio.

    You can get Visual C# here for free: http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express

    0 讨论(0)
  • 2021-01-18 15:57

    I would advice Visual Studio, the express edition is for free, you can find more information on the microsoft site over here.

    0 讨论(0)
  • 2021-01-18 15:58

    You can use Visual Studio Community edition which is a full featured free IDE from Microsoft that will compile C#.

    0 讨论(0)
  • 2021-01-18 15:59

    You need to have the framework installed (2.0, minimum). Then follow this old article for a simple how-to:

    http://msdn.microsoft.com/en-us/library/ms379563(v=vs.80).aspx

    NOTE: Microsoft IDEs like VS can do this for you also.

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