Saturday, March 17, 2012

Where is csc.exe? - Visual Studio .Net

I'm new to this, so when you are looking or don't have the right path set globally in your Windows System for csc.exe [a Microsoft Visual C# compiler tool], in my system, this can be found in,


C:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.exe


For a sample usage of csc.exe,


Z:\devel\c#-apps\dotnettattributes_src>C:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.exe /out:test.exe /target:exe *.cs


The /out specifies the resulting executable file and the /target specifies what kind of file type it will be, then the *.cs will compile all *.cs files in the current directory where in that directory contains the file that has the main() function.

No comments: