How to get the default project creation directory from the Visual Studio 2010 extension? By default, this directory:
C:\Users\<username>\Documents\Visual Studio 2010\Projects
I assume that this is done through the Tools-> Options window, but I do not know how to do this through the SDK.
At first glance, it looks like this: I need to close:
DTE2 dte = CType(GetService(typeof(SDTE)), DTE2); Object props = dte.Properties("Projects and Solutions", "General");
But I get the following error:
System.Runtime.InteropServices.COMException was unhandled by user code ErrorCode=-2147352565 Message=Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
source share