file locations

I have a quick question on file locations in C# - ie the physical location where you store your sourcecode.  In java the location of your file was dictated by the namespace which contained them.  In C# though, the namespace has nothing to do with file location.  So, if I wanted to store some of my source files in a different directory, how would I go about doing that?  

Would I have to compile them to a dll?

Thanks much!!!
ARACK04Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Carl TawnSystems and Integration DeveloperCommented:
By "different directory" do you mean a sub directory underneath the project, or a different location entirely ?

Storing the in subdirectories is straight forward. Just right-click on your Solution in the project browser and select "Add New Folder". This will create a new folder underneath your root project folder. Any files you put in here will be included in your compile.

I'm not sure if its possible to store files for your project in folders outside of the project folder.
ARACK04Author Commented:
What if I were programming on the command line (or writing a code generator)
ARACK04Author Commented:
points added
Bob LearnedCommented:
Yeah, C# natively doesn't like code in a single project to be distributed across multiple folders, unless they are sub-folders to the main project AFAIK.  Putting code into DLL's is certainly one way around that.

Bob

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ARACK04Author Commented:
Thanks.  Nice user name :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.