I am following the instructions here:
http://msdn.microsoft.com/en-us/library/ms228772(v=vs.80).aspx
for .net 3.5 visual studio 2008 to fix this issue:
for this line of code:
t = System.Type.GetTypeFromProgID("VisualStudio.DTE.8.0",
true);
I am getting this error:
COMException was unhandled: Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))
Does anyone know what this means, and what am I doing wrong?
thank you so much for your guidance.
Your code doesn't match the tag you used. VS2008 is Visual Studio version 9.0. So the proper progid is VisualStudio.DTE.9.0
. The full list of version numbers:
You can also use the VisualStudio.DTE
progid. You'll get whatever version of VS was installed last. A bit random.
User contributions licensed under CC BY-SA 3.0