Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 creates folder in current working directory on launch

Every time I launch Visual Studio 2010, it creates a directory called "Visual Studio 2010" in the current working directory at the time I launched it. It just started doing this at the same time that it forgot all of my toolbar settings and so on.

I've clearly got an incorrect setting somewhere, but I can't find it.

Under Tools\Options\Projects and Solutions\General I have:

Projects location:
D:\ian

User project templates location:
M:\Visual Studio 2010\Templates\ProjectTemplates

User item templates location:
M:\Visual Studio 2010\Templates\ItemTemplates

How do I stop this spurious .\Visual Studio 2010 directory being created and tell it to use the proper one on M:\ instead?

Edit: Since I've started a bounty on this, please be reasonable and don't post a suggestion that doesn't answer the question. For example, don't say 'Have you tried reinstalling?' or 'Have you tried deleting all your settings?' Thank you for your understanding.

like image 749
Ian Goldby Avatar asked Sep 29 '11 10:09

Ian Goldby


People also ask

How do I change the build output directory in Visual Studio?

Right-click on the project node in Solution Explorer and select Properties. Expand the Build section, and select the Output subsection. Find the Base output path for C#, and type in the path to generate output to (absolute or relative to the root project directory), or choose Browse to browse to that folder instead.

How do I create a release folder in Visual Studio?

The simplest way of doing it is by adding the desired folder to your project and the exe file on the folder. Change the properties of the exe file to "Content" and "Copy always". By doing that, everytime you rebuild your solution, the output will have the folder and exe file.

How do I get the current directory in Visual Studio?

You can get the current working directory by using System. IO. Directory. GetCurrentDirectory() .


1 Answers

Damn, too annoying. You don't know which plugin/addon or something do this...

So we can't find it too* Ok. thanks god, stackoverflow is here... Here is the solution;


Press Win + R

Type "regedit"

Go to this folder by treeview; "[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0]"

Edit everything which are like this; "Documents\Visual Studio 2010\"

Last step; In registry editor, press Ctrl + F

Search the string "Documents\Visual Studio 2010\". And change them too if anything appears...

I suggest an advanced registry editor for this.

Good luck & best regards...

UPDATE:

And if you still have the problem; open VS2010, go to "tools" > click "extension manager" > try to disable all plugins(I mean all of them). And play with VS again, create a new project etc. If there will be created a new folder( named like "Visual Studio 2010" ) in the "documents" then we will sure this comes from the ide:visual studio 2010( not add-ons ). Also, if you are using a "subversion control software" or "sdk service" try to disable them too... ( with disabling services in OS management )

like image 114
Lost_In_Library Avatar answered Nov 15 '22 08:11

Lost_In_Library