C# .NET compiler

  • Thread starter Thread starter Sebastijan Vacun
  • Start date Start date
S

Sebastijan Vacun

Does anybody know, if there exists any compiler for C#?
like javac compiler for java

I want to program in UltraEdit and have just compiler to
build a project.

Thanks in advance.

best regards, Sebastijan
 
Sebastijan,

You can use CSC.EXE, which is the command line compiler for C#.

Hope this helps.
 
Nicholas, does Visual Studio actually use CSC.EXE to build its projects, or
is CSC itself just a wrapper for the Framework code building classes?

Chris

Nicholas Paldino said:
Sebastijan,

You can use CSC.EXE, which is the command line compiler for C#.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Sebastijan Vacun said:
Does anybody know, if there exists any compiler for C#?
like javac compiler for java

I want to program in UltraEdit and have just compiler to
build a project.

Thanks in advance.

best regards, Sebastijan
 
Chris,

I would imagine that it does, but I can't be sure. I think that they
actually host the CLR in a custom manner and then make the calls to the
compiler classes.

This is just a guess though.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Chris Capel said:
Nicholas, does Visual Studio actually use CSC.EXE to build its projects, or
is CSC itself just a wrapper for the Framework code building classes?

Chris

in message news:[email protected]...
Sebastijan,

You can use CSC.EXE, which is the command line compiler for C#.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Sebastijan Vacun said:
Does anybody know, if there exists any compiler for C#?
like javac compiler for java

I want to program in UltraEdit and have just compiler to
build a project.

Thanks in advance.

best regards, Sebastijan
 
CSC.EXE is a small command-line driver for the real C# compiler: cscomp.dll.
cscomp.dll is part of the .NET framework SDK (csc.exe would be useless
without it).

The compiler is written in a DLL so that the IDE can call it in-process
through a pseudo COM interface. In fact the intellisense engine in the IDE
shares the parser and parse tree with the compiler, such that when you start
a build, the compiler doesn't have to reparse files you've got open since
they were already parsed for intellisense.

The framework code building classes actually end up calling csc.exe to do
the compilation.

--
--Grant
This posting is provided "AS IS" with no warranties, and confers no rights.


Chris Capel said:
Nicholas, does Visual Studio actually use CSC.EXE to build its projects, or
is CSC itself just a wrapper for the Framework code building classes?

Chris

in message news:[email protected]...
Sebastijan,

You can use CSC.EXE, which is the command line compiler for C#.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Sebastijan Vacun said:
Does anybody know, if there exists any compiler for C#?
like javac compiler for java

I want to program in UltraEdit and have just compiler to
build a project.

Thanks in advance.

best regards, Sebastijan
 
Very cool. Thanks for the info, Grant!

Grant Richins said:
CSC.EXE is a small command-line driver for the real C# compiler: cscomp.dll.
cscomp.dll is part of the .NET framework SDK (csc.exe would be useless
without it).

The compiler is written in a DLL so that the IDE can call it in-process
through a pseudo COM interface. In fact the intellisense engine in the IDE
shares the parser and parse tree with the compiler, such that when you start
a build, the compiler doesn't have to reparse files you've got open since
they were already parsed for intellisense.

The framework code building classes actually end up calling csc.exe to do
the compilation.
rights.
 
It's my understanding that the C# compiler itself (csc.exe and other
required files) is distributed with the .NET SDK which is a free public
release from Microsoft, so that should give you the compiler; you just won't
have the Visual Studio .NET IDE to complement it. Here's a link,

(100 meg!)
http://microsoft.com/downloads/deta...A6-3647-4070-9F41-A333C6B9181D&displaylang=en

If you do want an IDE that is more feature rich than Ultraedit there is an
open source offering called SharpDevelop which you can find here,

http://www.icsharpcode.net/OpenSource/SD/Default.aspx

Haven't used it myself so can't comment on it. I believe there is at least
one other open source IDE and of course lots of other freeware tools.
 
Back
Top