Question

In an earlier question, I've found out that sadly Solution Folders are not real folders inside a directory.

I wonder if there is an AddOn or Macro that adds this functionality? i.e. when I create a Solution Folder, it created a real folder. When I Create a new Item (Right Click => Add => New Item) it automatically moves them into that folder, removing causes it to delete it from disk (after asking) etc.

This is for Visual Studio 2005, although we might upgrade to 2008 in a few months.

Was it helpful?

Solution

As of now, this doesn't seem to be possible in either VS 2005, 2008 and 2010 and there is no AddIn for this.

OTHER TIPS

I too thought it was a strange idea. However it can be a useful tool to logically group projects in solutions without necessarily moving around folders in the file system.

I suspect you need this for revision control tool. In that case Look at AnkhSVN.

Maybe what you want is to add files to a solution folder as «links», i.e., keeping the files where they are but giving them a different organization inside the solution. (when you add an existing file to a solution folder or to a normal project folder, if it is in a different corresponding physical folder, the file is copied). It usually stays unnoticed, an option in the «Add > Existing Item ...» dialog where you can choose "Add As Link", instead of the "Add". This allows to share files amongst projects, or, simply, organize them differently. What I oftem miss is the possibility to add "virtual" folders inside a project, for organizational purposes, without breaking the namespace/folder best-practice.

Can't really get the point you want to add this function.

Sometimes you want to know if it can do this , however, the answer may be no. But it is not necessary means you can't achieve your original goal, there still a few ways to work around it without this.

Additionally, VS solution suppose to be the shortcut of your project settings and should not been included in any hard-code, the solutions may be various between the PCs and IDE envrionment.

I didn't really use VS2005 much, but have been using VS2008 for the past year.

It has a tick box for creating a solution folder when you create a new solution/project.

If you then use the "Solution Explorer" window you can create and manipulate folders and class files within them. This will actually create new directories that match.

Deletion of files from within the Solution Explorer will also delete the actual files from disk.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top