Possible Duplicate:
C# - How to get csc.exe path?
Is there a "proper" way to find the path to the C# compiler on a given system?
E.g. for Java, the "proper" way is to use the HKLM\Software\JavaSoft
registry key to go through all the different JDKs and their locations, rather than assuming that everything is in %ProgramFiles%\Java
.
Is there a similar method for C#?