lenards

I've looked around for a workaround to this - but when you create a new blank solution in my current configuration of VS 2005, I cannot create it without the solution being placed under a directory of the same name. The checkbox to avoid this operation is disabled.

I'm really annoyed by this and I'm tired to moving .sln files out of the directory and deleting it - does anyone know how to tweak this

Andy


Re: Visual C# General Creating a solution without creating a directory

Marcelo Guerra - MSFT

I'm not sure if this is what you want, but have you tried New -> Project from existing code This option doesn't create any directory.



Re: Visual C# General Creating a solution without creating a directory

Geert Verhoeven

Hi,

The checkbox is only valid if you create a new project. When creating a new project, you can specify if the solution must be in a higher directory.

There is no real way to create a solution without creating a folder.

Greetz,

Geert

Geert Verhoeven
Consultant @ Ausy Belgium

My Personal Blog






Re: Visual C# General Creating a solution without creating a directory

lenards

Marcelo,

What I mean is... I have an application and I would like two or three functional views of the application. So I create a blank solution for each view - but I don't want a directory created for each solution I create. I want these solutions under the top level directory that contains the application folders (if you want). Something like this:

SomeApplication
|---------SA.Foundation
|---------SA.Extension
|---------SA.BaseTypes
|---------SA.Messaging
|---------SA.Processing
|---------SA.WorkMgmt

If I create a solution SA.MainView.sln - it creates a directory SA.MainView and sticks the solution under that, when what I really want is the file to be under the directory SomeApplication.

Does that make more sense

So when I do a solution for the Messaging functionality and one for the Processing functionality, I'd like those sln files to just be under SomeApplication and not extraneous directories mucking with my source control folder heirarchy because they provide zero benefit by just being a directory with one file.

I swear in VS 2003 I was able to do this.

Andy





Re: Visual C# General Creating a solution without creating a directory

lenards

So I was wrong... VS 2003 does the same thing. But it does give you the option for a blank solution off of File -> New -> Blank Solution... instead of being buried in the "Other Project Types" category.

Sorry... I know this isn't a huge thing - but I don't see why you can't create a .sln without directory. What means this a necessary operation