Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set root directory for project in Visual Studio 2012 Solution Explorer

Visual Studio 2012's Solution Explorer can be configured to display the actual files on disk (rather than just project files) simply by toggling the Show All Files button. Each project will display the files and folders located in the same folder as the project file itself.

Is there any way to change the root directory of what is displayed?

My cross-platform project is organized like this:

project/ide/vs2012/project.sln
project/ide/vs2012/project.vcxproj
project/src/*

I want Solution Explorer to show the files in my src directory, not my vs2012 directory.

like image 578
sourcenouveau Avatar asked Oct 20 '25 11:10

sourcenouveau


1 Answers

I created a symbolic link under the vs2012 directory to point at my source code:

MKLINK /D src ..\src

Now Visual Studio sees the src folder underneath the project.

like image 76
sourcenouveau Avatar answered Oct 23 '25 14:10

sourcenouveau