source files in a separate directory than the project files

Hi experts,

I want to have my source files in a separate directory.  Visual Studio puts all the files in the same directory.  How can have different directory for the source and other project files.

It has a Properties, bin, obj, Resources directory by default.  I want to have a src directory and move all my .cs files to there.
ambuliAsked:
Who is Participating?
 
discon0Connect With a Mentor Commented:
If you go to the menu option Project->New Folder you can add directories to your project and rearrange your source files as you want.
0
 
Bob LearnedConnect With a Mentor Commented:
You can create folders under the solution, which is the best option.  Are you looking to create folders outside of the solution root?

Bob
0
 
ambuliAuthor Commented:
No, I want to just organize my files in the project.  For example, I have few GUI related source files and util files.

So, I want to have something like

Project -
            -Properties
            -Resources
            - src -  util
                    - gui
            -bin
0
 
ambuliAuthor Commented:
Thank you.  I was able to do it as right clicking on the project and Add->NewFolder.  I then just dragged all the source files to the new directory.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.