[2005] Howto get solution name
I have a solution which is basically an add-in to MS Outlook. For some reason I need to save some user configuration in user related folder. The problem is that Application.UserAppDataPath returns following folder: C:\Documents and Settings\Developer\Application Data\Microsoft Corporation\Microsoft Office Outlook and I dont want to use this, so I need to build my own inside Application Data folder.
For this I need to get name of the solution.
thank you
Re: [2005] Howto get solution name
There is no "solution". A solution is a container for development projects. Once you compile and deploy the application is completely independent of the solution used to develop it.
You don't need to get anything anyway. It's your add-in. You know what it's called. Just hard-code it:
vb.net Code:
Dim path As String = IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), _
"MyAddInName")
Re: [2005] Howto get solution name
to get the name of the executable while running it, you can use
Re: [2005] Howto get solution name
Quote:
Originally Posted by .paul.
to get the name of the executable while running it, you can use
But the executable is Outlook, NOT the add-in.