1
我正在使用visual c# express edition
,我想創建該應用程序實例以獲取輸出窗口對象。因此,我使用下面的代碼來創建visual studio實例。如何獲得visual c#express應用程序實例
DTE2 dte = (DTE2)System.Runtime.InteropServices.Marshal.GetActiveObject("VisualStudio.DTE.10.0");
但這是給exeception:
Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))
所以請幫助我。