Visual Studio 2010 creates a folder in the current working directory at startup

Each time I start Visual Studio 2010, it creates a directory called "Visual Studio 2010" in the current working directory at the time I started it. He just started doing this at the same time that he forgot all the settings on my toolbar, etc.

I obviously have an incorrect setting somewhere, but I can not find it.

In the Tools \ Options \ Projects and Solutions \ General section, I have:

Project Location:
D: \ Yana

Custom Templates:
M: \ Visual Studio 2010 \ Templates \ ProjectTemplates

Location of user item templates:
M: \ Visual Studio 2010 \ Templates \ ItemTemplates

How to stop this false. \ Created directory in Visual Studio 2010 and tell it to use the correct name on M: \ instead?

Change Since I began to be generous about this, be reasonable and do not post suggestions that do not answer the question. For example, do not say: "Have you tried reinstalling?" or "Have you tried to delete all your settings?" Thank you for your understanding.

+7
source share
6 answers

This is the final answer that worked for me.

It turns out that Visual Studio 2010 regularly and automatically exports your settings file. (You probably expected it to save your settings on exit, but it will not export them unless you explicitly ask for it.) I think this is done every time you leave, but it seems to create a directory to which it will be exported as soon as it starts. This is the problem that I have seen.

Here's how I solved it:

Tools > Options > Environment > Import and Export Options

Field Automatically save my settings in this file: it was just Visual Studio 2010\Current Settings.vssettings . This is a relative path, so the Visual Studio 2010 folder was created in the current working directory. I changed it to the absolute path M:\Visual Studio 2010\Current Settings.vssettings , and this solved the problem.

+2
source

Damn too annoying. You do not know which plugin / addon or something to do it ...

Therefore, we cannot find it too well. Thank god stackoverflow is here ... Here is the solution:


Press Win + R

Enter "regedit"

Go to this folder in the tree; "[HKEY_CURRENT_USER \ Software \ Microsoft \ VisualStudio \ 10.0]"

Edit anything you want; "Documents \ Visual Studio 2010 \"

Last step; In the registry editor, press Ctrl + F

Find the line "Documents \ Visual Studio 2010 \". And change them too if anything appears ...

I suggest an advanced registry editor for this.

Good luck and best wishes ...

UPDATE

And if you still have a problem; open VS2010, go to "tools"> click "extension manager"> try disabling all the plugins (I mean all of them). And again play with VS, create a new project, etc. If a new folder (called "Visual Studio 2010") is created in the "documents", then we are sure that this comes from ide: visual studio 2010 (do not add -ones). In addition, if you use "subversion management software" or "sdk service", try also disabling them ... (with disabling services in OS management)

+5
source

This is a different way, so I am adding a new answer here. I don't want to edit my previous answer too much (it began to look ugly) ...

Just follow this link, download / copy the script, carefully save and edit for your needs; https://github.com/jerker-back/VSUtilities/blob/master/custom_vspaths.js and run it under admin.user.rights (or disable windows uac) ...

+1
source

Is it possible that you have a macro in EnvirommentEvents that calls this? Go to Tools β†’ Macros β†’ IDE Macros. Look in each of the macro trees in Project Explorer for EnvironmentEvents to find out if any of these macros are guilty.

0
source

None of the solutions worked here. I don’t think we still saw the golden bullet.

I wrote to the same settings folder for many years, and suddenly it was useless for a visual studio. The folder was a network folder. Once, every time I ran the solution, it would start creating another Visual Studio 2010 folder in the same directory as the .sln file.

I tried (and tried again), indicating where the settings are saved. I also went through and made some changes to the registry. In the end, it would seem that this was fixed to re-configure the IDE to use the local path, and then reconfigure it again to use the network path. I did this for all the paths that you can set in Tools ... Options ... Environment ... Import and Export Options, as well as Tools ... Options ... Environment ... Projects and Solutions .. . Are common. And now I'm back to the setup I have used over the past few years. He stopped creating new folders every time I open the solution. For now, anyway.

0
source

Brute Force Solution:

  • Run regedit and rename the [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio] folder to something like " VisualStudio_BAK ".
  • Run devenc.exe /resetsettings to reset all the default settings.

If you do not know what you are doing, do not try this ...!; -)

0
source

All Articles