Home > Uncategorized > Finding out where Visual Studio stores your settings file

Finding out where Visual Studio stores your settings file

February 3rd, 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:\Users\UserNameGoesHere\AppData\Local\Microsoft_Corporation

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

alex Uncategorized

  1. No comments yet.
  1. No trackbacks yet.