How to compile c #?

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

If I need to download one, what do you recommend?

I did this and he told me about "csc.exe", but I can not find it.

+4
source share
14 answers

For any real development, the IDE is preferred. Microsoft offers a free version of Visual Studio Express , which has everything you need to get started with C #.

However, you can compile using only the command line compiler (csc.exe), which is included in the structure.

It must be located in the .NET installation directory; for example, on my machine for .NET 4, 64-bit, I have csc.exe in:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319 
+11
source

Use the csc command line csc

 C:\>csc file.cs 
+3
source

You can use the version of Visual Studio Community , which is Microsoft's full-featured free IDE that will compile C #.

+3
source

Your options:

+2
source

As you start fresh, why not use an IDE that does this for you?

http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-csharp-express

+1
source

For literal compilation C #: Own image generator

Otherwise, get Visual Studio.

0
source

Using Visual Studio will be the easiest way. Free editions available. See http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express for more details.

0
source

You need Visual Studio to compile it as soon as you install it. After installing it, you can go to Visual Studio Command Prompt and use the C # csc.exe compiler to compile it.

For more information, contact Command-Line Building

0
source

You must install the framework (2.0, minimum). Then follow this old article for easy practical use:

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

NOTE: Microsoft IDE, for example, VS, can do this for you as well.

0
source

Not sure if you can do this by default in Windows 7 Enterprise. At least you will most likely need a visual studio.

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

0
source

I would recommend Visual Studio , an express edition for free, you can find more information on the Microsoft website at here .

0
source

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

However, you probably want to use Visual Studio, a world-class Microsoft development environment.
You can download the free version .

0
source

Also consider using Mono and MonoDevelop for Mac, Linux, and Windows. Not a bad choice for a serious beginner.

0
source

I started using SharpDevelop as a portable text editor that understood ASPX files out of the box (against Sublime, etc.), but I created a couple of small (<10K lines) utilities using just that and CSC now. A portable copy of SharpDevelop is especially useful when you do not have administrative permissions (or time) to install full Microsoft Visual Studio in your environment.

Download the "XCopyable" version to get the portable version of SharpDevelop: http://www.icsharpcode.net/OpenSource/SD/Download/Default.aspx#SharpDevelop5x

0
source

Source: https://habr.com/ru/post/1379383/


All Articles