   Automate VC++2008EE with C#
  On my work computer I have Visual Studio 2005.  I built a C# program to automate builds, using this code to control the IDE:Type visualStudioType = Type.GetTypeFromProgID("VisualStudio.DTE", true);dte = Activator.CreateInstance(visualStudioType) as DTE;I want to do the same thing here on my home computer.  However, here I have Visual Studio 2008 Express Edition.  Using the same code from above generates a debug error titled "COMException was unhandled" that says "Invalid class string".  I've tried all the googleable permutations of the string, such as "VisualStudio.DTE.9.0", "VisualStudio.DTE.8.0", "VisualStudio.DTE.7.1", "VisualStudio.DTE.10.00", etc...  Nothing works.  Does anyone know how to do this, or at least how to look up the class strings?   
  Use msbuild through Microsoft.Build.BuildEngine to automate your builds. Works without Visual Studio (and also works on Mono if you are interested in that). Much more robust.   