Is the path for the C# compiler, csc.exe, stored in a reference location somewhere?
I am working on a custom tool to compile code snippets into their own DLL’s by the users so location could vary, would like to automate this as much as possible before resorting to the locate file dialog box!
Is there any reason you want to invoke the binary directly, instead of using
CSharpCodeProviderto programmatically compile?You may be interested in my own snippet compiler (Snippy), which you can download the source for on my C# in Depth site.