4

I come from Visual Studio 2008, where the .sln file used to be stored in the project folder. Now I see it is stored in documents\Visual Studio 2010\Projects\ProjectName\, which I don't like at all.

How can I store it automatically in the project folder? Without cutting and pasting it each time I open a new project...

Sabuncu
  • 5,095
  • 5
  • 55
  • 89
markzzz
  • 47,390
  • 120
  • 299
  • 507

2 Answers2

5

A screenshot with a Big Red Arrow on the relevant controls:

enter image description here

The "Create directory for solution" checkbox is ticked by default. Turn it off to get the project stored in the same directory as the solution. VS memorizes the last setting you used.

The "Location" property determines where the solution is stored. The default is the path that you complain about. Just edit it. Or change the default setting like I did: Tools + Options, Projects and Solutions, General, "Projects location" setting.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536
  • There aren't those controls if you do File->New Web Site :( – markzzz Apr 01 '12 at 13:32
  • There is no project when you use that. Read through the MSDN article to decide which approach suits you best: http://msdn.microsoft.com/en-us/library/dd547590.aspx – Hans Passant Apr 01 '12 at 13:53
1

You can change the path where new projects and files are created by using the Options dialog box. Your existing projects remain in their current location.

  1. On the Tools menu, select Options.
  2. From the Projects and Solutions folder, select General.
  3. In the Visual Studio projects location text box, enter a location for files and projects.
Rps
  • 277
  • 1
  • 5
  • 25