source files in a separate directory than the project files

Posted on 2007-10-18
Last Modified: 2013-12-17
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.
Question by:ambuli
    LVL 5

    Accepted Solution

    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.
    LVL 96

    Assisted Solution

    by:Bob Learned
    You can create folders under the solution, which is the best option.  Are you looking to create folders outside of the solution root?


    Author Comment

    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 -
                - src -  util
                        - gui

    Author Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Flash ( has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
    Normally a window is moved by clicking on the caption bar and dragging. You may want your user to be able to move borderless forms or move a form by clicking anywhere in the form without the limitation to the caption bar. There are many ways to do i…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now