Source files above project directory.

Has this been fixed yet in C#? I would prefer the following directory structure and it does not seem possible. The project files below the source files...

foo
App.xaml
App.xaml.cs
vs9
foo.sln
foo.csproj

Among other things I don't want the build files cluttering up my source directory.

[319 byte] By [billyzelsnack] at [2008-1-8]
# 1

After you create the project, you should be able to add existing item as link to the project. In that case, the source code will not be copied into the sub folder.

LifengLu-MSFT at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Visual Studio Orcas IDE, Debugger, Build, Deployment, Help, etc....
# 2
I just tried it again and I can't figure out what you mean by.. "add existing item as link"? All I can guess to what you mean is to make a shortcut to each of my source files. Or.. Maybe this is a Vista only thing?
billyzelsnack at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Visual Studio Orcas IDE, Debugger, Build, Deployment, Help, etc....
# 3

When you choose to add an existing file to the project, in the "Add Exisiting Item" dialog, you choose the file (in the parent folder). The "Add" button on that dialog has a little dropdown. You should not click the add button directly, but should click the dropdown area, and select "Add as link". If you do that, Visual Studio will add the file to the project as a linked item.

It is nothing to do with the OS you are using. Essentially, it means that the file will be added to the project file, but should not be copied to the folder.

LifengLu-MSFT at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Visual Studio Orcas IDE, Debugger, Build, Deployment, Help, etc....
# 4
Excellent! That did it. Thanks.
billyzelsnack at 2007-10-2 > top of Msdn Tech,Visual Studio Orcas,Visual Studio Orcas IDE, Debugger, Build, Deployment, Help, etc....

Visual Studio Orcas

Site Classified