Home  /  Questions  /  Question

555   99.9
Aug 22, 2012

"Solution Items" Folder in empty Solution. Why?

Hi there,

Reading your documentation about the Pattern Framework Solution, I stumbled accross the hint to immediately create a "Solution Items" Folder in an empty solution, because otherwise any project would take over the solution role ("which is not what you want"). However, what does that actually mean?

I am looking forward to your explanation. ;)


830   99.9
Aug 30, 2012
Hi Christian:

The best way to see what happens is to give it a try. 

Start with an Empty Solution. Then add a project (say an MVC project). 
You will see that your Empty solution changes to a solution that is just the MVC project. In other words it 'takes over' the solution.
The 'work around' we found was adding a 'Solution Items' folder which is a good thing to have anyhow, to store solution artifacts, such as, documents, DDLs, textfiles, etc.

Hope this helps.
Hi Dan! dof seems to be a great employer... reading your replies for a couple of years now :) However, regarding this topic: Can't confirm that. If I create an empty solution and add a new project, the solution is still there and I can still create solution folders. What I DO know on the other hand is, that you can configure Visual Studio not to show the Solution treenode once there is a project. If you choose VB.NET this is the default setting (in Extras > Settings). --- Christian Jacob  Sep 01, 2012
I found this same issue having just started with the framework. I tested your suggestion and look at the setting suggested by Christian. The setting is 'Always show solution' (see http://msdn.microsoft.com/en-us/library/8919d7f2(v=vs.100).aspx). It was on by default on my pc, I use the C# settings option when I first install VS. With that off it did show only the project when I had not added the 'Solution Items' folder. --- Steve Martin  Sep 02, 2012