[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

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.
  • 2
2 Solutions
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.
Bob LearnedCommented:
You can create folders under the solution, which is the best option.  Are you looking to create folders outside of the solution root?

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now