Search code examples
visual-studio-2008

Settings Synchronize button: no user.config files were found in Visual Studio


It isn't really causing a problem but it is annoying me... Does anyone know how to refresh the locations for your user config in Visual Studio?

When I click the Synchronize button in the Project Properties->Settings form, I get the error message No user.config files were found in any of the following locations.

The paths listed do not exist, so I know why the error message is coming up. However the settings files must be stored under some different paths.

Any ideas? I did do a quick search in the registry for the paths but nothing was real obvious as to what I could delete. Perhaps it's something contained in a file in the solution?

I'm using Visual Studio 2008, Windows XP.


Solution

  • It's not an error, so much as a warning that "There were no files to delete, so nothing was actually done."

    From "Synchronize button on the Settings tab":

    The "Synchronize" button is used to remove the runtime-generated, application-specific user.config files from the disk. If your application doesn't have any user-scoped application settings(that means all the application settings' scope are "Application"), then there would not have a user.config file for the VS2005 IDE to delete after run-time.

    You would use this button when you change the settings schema between debug sessions, so the versions don't get "out of sync" and cause errors reading from the settings file.

    The warning would also, of course, happen the second time you click "Synchronize" in a row.