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

Sure, the framework includes a compiler, csc.exe. Look at this article for a quick how-to. The important parts: You can get the command-line compiler (csc.exe) from Microsoft site http://msdn2.microsoft.com/en-us/netframework/aa731542.aspx. Download the redistributable package of the .NET Framework, which includes the compiler and the .NET Framework with C# 2005 syntax support. The compiler is located in … Read more

csc.exe reference external .dll file

So, my question is what is the correct way to reference .dll file in csc when files are in an external folder. You’re already referencing them at build time. You just need to make them available at execution time too, but copying them into the same directory as the executable, when you want to run … Read more

How to get csc.exe path?

c:\Windows\Microsoft.NET\Framework\vX.X.XXX Should contain the latest 32 bit version of csc.exe c:\Windows\Microsoft.NET\Framework64\vX.X.XXX Should contain the lastest 64 bit version of csc.exe That’s what it is for mine anyway. BTW: You can access both by using the Visual Studio Command Line from your visual studio tools folder in your program files. It auto sets up all the … Read more