copy projects to new location

M

mp

I have a sample of model view presenter pattern
4 project folders in one main folder

is there an easy way to copy the entire folder and rename all the projects
and refernces?
so as to use like a template for a similar project
in other words i want to save the 'architecture' of the
businesslayer,presentation layer, view layer, service layer
and just rename all the files and objects to start building my own project
in that pattern

i thought it might save some time compared to starting it all by scratch
but my first attempt is having troubles with changing references etc

just wondering if there's a built in mechanism for that...
there's no save project as or save solution as that i can find...

thanks
mark
 
M

mp

Peter Duniho said:
I have a sample of model view presenter pattern
4 project folders in one main folder

is there an easy way to copy the entire folder and rename all the
projects
and refernces?
[...]
You can just copy the files. To add the project to an existing solution,
you can use the "Add Existing Project." command.

I must have done something wrong because I tried copying the 'parent' folder
to a new location
when i go into the new location and try to recreate a solution with the four
projects and use the
"add existing project", no projects are found in the dialog box,

there must be a setting in the properties somewhere telling it where to look
for project files???
VS supports templates, and I suppose you could even take the sample code
you're looking at and turn it into a "new project" template. That would
also allow you to save a step, since you can create a new solution and new
project all at once with a template.

i had thought of that also...may try that as well
However you get the sample code as a new project in your solution, the
built-in refactoring support should be sufficient to allow you to rename
types, members, etc. as needed.

Pete

it took a while but i finally got my orig project split up into 4 layers
it will take a while longer to fully understand this new paradigm
....learning is almost as fun as it is frustrating
:)
thanks
mark'
 
M

mp

Peter Duniho said:
[...]
You can just copy the files. To add the project to an existing
solution,
you can use the "Add Existing Project." command.

I must have done something wrong because I tried copying the 'parent'
folder
to a new location
when i go into the new location and try to recreate a solution with the
four
projects and use the
"add existing project", no projects are found in the dialog box,

You have to make sure you've navigated to each project's folder, to where
the .csproj file for the project is.

Pete

in solution exporer
when i rightclick on project|references it pulls up a dialog,
on the Projects tab there's no way to navigate
it shows a project folder list on the right pane and project files in the
left pane
in the one i was having trouble with, i've deleted something that told it
where the projects directory was
(i think)
so in that project the project directory list is blank and the project files
list is blank, and no browse button
if i go to the browse "TAB:" i can browse for dll files but not for projects
or project folders

i've been looking for a place to set project directory but don't find it yet
 
M

mp

Peter Duniho said:
[...]
when i go into the new location and try to recreate a solution with the
four
projects and use the
"add existing project", no projects are found in the dialog box,

You have to make sure you've navigated to each project's folder, to
where
the .csproj file for the project is.

Pete

in solution exporer
when i rightclick on project|references it pulls up a dialog,

I'm talking about the "Add Existing Project." UI (i.e. the one you
mentioned previously), not the "Project/References." UI.

Adding a reference to a project doesn't include it in your Solution. You
need to use the correct IDE command, which is "Add Existing Project.".

Pete

duh! i'm an idiot
sorry
:-\
 
J

Jeff Johnson

Adding a reference to a project doesn't include it in your Solution.

Nor should it even be POSSIBLE to add a reference to a project that isn't in
the solution. It simply won't display in the list.
 

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