Finding out where Visual Studio stores your settings file

Posted By on Feb 3, 2010


When you’re writing managed add-ins for Office, it can be tough to figure out where Visual Studio is storing your settings file (*.dll.config) or any of the other files that it is generating when you Debug your program. 

I’ve solved this problem about 6 times, and I don’t ever want to have to solve it again.  So here’s the easiest way to find out where your plugin is ACTUALLY being run from:

MessageBox.Show(this.GetType().Assembly.Location.ToString());

And the actual config file is usually in:

C:UsersUserNameGoesHereAppDataLocalMicrosoft_Corporation

This post was really more of a reminder to myself than anything else.  Sorry if it’s boring. 

Submit a Comment

Your email address will not be published. Required fields are marked *