Best Approach When Saving a New Project

S

Steve

When I create a new project in 2005, and I go to save the project files,
vb.net displays a dialog box that repeats the name of the application and
has a checkbox if I want to create a new directory for it. If I click the
checkbox, the new subdirectory gets the same name as the higher subdirectory
(which is the application name). For example if the project is called Test,
then the subdirectory structure looks like

Visual Studio 2005
--- Projects
--- Test
--- Test
--- bin
--- My Project
--- obj

If I don't tell the dialog to create a new directory, then I get

Visual Studio 2005
--- Projects
--- Test
--- bin
--- My Project
--- obj

Creating another \Test subdirectory below the first \Test subdirectory seems
redundant. Is there a reason why either approach would be better?

Also - If I want to throw in other files into the appliation (such as word
templates, icons, etc.), where's the best place to save them to simplify
deployment and use (\Test, \Test\MyProject, \Test\Test,
\Test\Test\MyProject, somewhere else?

Thanks

Steve
 
R

RobinS

It does that because what it's really doing is saving the
Solution in the top \Test directory. So if you added another
project called Test2 to that solution, it would show up
as folder Test2 under VisualStudio2005\Project\Test\.

I think you can add Word docs, etc., to your solution as
well, and it will put them where it thinks they go. Maybe
in a resources folder?

Robin S.
 
C

Charlie Brown

Personally I like to always create a Blank Solution first, then add
projects under that solution. I like the organization that gives me.

MySolution
--MyWindowsFormProject
--projectfolders
--resources
--icons
--MyBusinessClassProject
--projectfolders

I store resources in the projects to which they belong under the same
named folder. If you are not distributing the project or sharing it
with other devs, then its up to personal preferences.
 
S

Steve

Were MySolution and MyWindowsFormProject the same names? If so, is this
confusing when you are using path statements in your code?

Also - if you create temp files or output files from your code - where do
you normally put them - root? temp? in the deployment folder as a
subdirectory? or somewhee else?

Thanks

Steve
 
R

RobinS

This is a good method, too. I like to see the Solution
as the top level. I have <Show Solution> checked in my
Visual Studio settings so it always shows it even if
I only have 1 project.

Robin S.
------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top