Search code examples
visual-studio-2010visual-studiosolution

Visual Studio not creating a solution file?


I've just opened VS 2010 Professional up on my machine, started a new ASP.NET MVC 4 Web Application project and noticed that it doesn't seem to be creating a Solution file. This means I can't - or don't seem to be able to add a new project to the solution as its not there!

Here is a screenshot to demonstrate the problem:

enter image description here

I've just tried creating a number of other new projects i.e a WinForm, console app and a class library and all have the same issue, no sln.

Can anyone give me an indication of whats going on?


Solution

  • Visual Studio will hide the solution item in Solution Explorer if there's only one project.

    To change this, go to Tools -> Options -> Projects and Solutions -> General and make sure "Always Show Solution" is checked.