7

Where is the .NET command line compiler (csc.exe) located after install?

I'm trying to set up my path to compile C# applications from the command line, but I can't find where csc.exe has been installed.

I'm using .NET 4 and Windows 7 Pro 64-bit.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
richzilla
  • 40,440
  • 14
  • 56
  • 86

1 Answers1

12

In the respective %windir%\Microsoft.NET\Framework\vXXXX folder.

Each version of the runtime has its own compiler, which would make 4.0:

%windir%\Microsoft.NET\Framework\v4.0.30319\csc.exe

Your minor version (the 30319) may vary.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Oded
  • 489,969
  • 99
  • 883
  • 1,009