I'm developing an application in C# using VS2005 and .NET 2.0.
A piece of my app generates classes on the fly and then uses them. This was inspired by: http://www.ondotnet.com/pub/a/dotnet/excerpt/prog_csharp_ch18/index.html?page=8
I'm now debugging this. Unfortunately my app can't find csc.exe. I just opened a cmd window and it can't find it either. Neither can a cmd window on a PC I plan to deploy on. On both machines I can find csc.exe in %windir%\Microsoft.NET\Fra
\csc .exe (thanks to http://www.thescripts.com/forum/thread242767.html
Question #1: Does csc.exe exist on every PC that has .NET 2.0 installed? (ie no VS2005 or SDK required)
Question #2: What's the safest way to locate csc.exe from within my code?
Question #3: A lot of PCs will probably have different framework versions installed. Should I always look for 2.0 or the latest? Are there safe & convenient ways to accomplish finding the right version?