GGG
GGG

Reputation: 201

Visual studio 2010 creates new project every time I open a web site

I am working for a client who has a number of ASP.NET web sites (as opposed to ASP.NET web applications). Each time I open up one of these websites in VS2010 I have to tell Visual Studio to use IIS Express, and for older websites I have to tell VS2010 that I do not want to convert it to .NET 4. I can see in the title bar, once the website has been loaded, that a new solution file is created each time, because it displays "[websitename] (NN)", and each time I load the web site NN increases by 1. It would be handy if I could simply open up the solution file directly, or alternatively change a setting somewhere that tells VS2010 to use the existing solution file for this site. Does anyone know if this is possible?

Upvotes: 0

Views: 1039

Answers (1)

Olaf
Olaf

Reputation: 10247

Here are the steps required to achieve that:

  1. Add an empty solution by clicking File -> New -> Project -> Other project types -> Visual Studio Solutions
  2. In your solution explorer which should show nothing except the one entry for your empty solution, right click on that solution entry, click Add -> Existing website, then find the existing website in your file system and confirm.

Done.

Upvotes: 1

Related Questions