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

x
  • 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.
0
ambuli
Asked:
ambuli
  • 2
2 Solutions
 
discon0Commented:
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 LearnedCommented:
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

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