Compiling C# at the Command Line
I frequently have to compile stuff outside of Visual Studio 2008, to access .Net 4.0. Here is what I came-up with a simple batch file to do it.
%windir%\Microsoft.Net\Framework\v4.0.30319\csc.exe /t:exe /out:getIt.exe getIt.cs /r:SimpleImpersonation.dll /lib:"./"
%windir%\Microsoft.Net\Framework\v4.0.30319\csc.exe /t:exe /out:getIt.exe getIt.cs /r:SimpleImpersonation.dll /lib:"./"
Comments
Post a Comment