PC Review


Reply
Thread Tools Rate Thread

Copying a project

 
 
Paul Cotter
Guest
Posts: n/a
 
      8th Feb 2005
First - is this the right venue for Visual C# questions?

How do you duplicate a project. So if I have a directory

c:\c#\projects\proj_1

Containing proj_1.sln, proj_1.suo and a subdirectory
c:\c#\projects\proj_1\proj_1 that contains the source etc.

How do I recreate this as proj_2 including the directory
c:\c#\projects\proj_2\proj1_2

The complexity of the names I am using will probably lead you to the
(correct) idea I am fairly new at this...



 
Reply With Quote
 
 
 
 
Paul Cotter
Guest
Posts: n/a
 
      8th Feb 2005
I noticed that when I inspected the inside of the proj_1.sln (a char 256
file) and the proj_1.suo (a Unicode file) they both contained absolute
addresses to c:\c#\projects\proj_1\proj_1. (as opposed to relative
addresses of the form ..\proj_1)

I was afraid that if I just copied the directories then the references would
just point back at the original files and some form of corruption may take
place. I suspect I can just manually edit these files, but wanted some
confirmation.

Thanks for the tip on not using c# as a directory name. I do not see the
problem, but believe it could easily exist.


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Just use Explorer to copy proj_1 with all its subfolders to proj_2. I

don't
> believe that you can rename subfolders as well, however. The project and
> resource files tend to hold sufficiently qualified paths to different

parts
> of the project so that you end up having difficulties.
>
> I seem to recall that some people have eventually encountered a bug of

some
> kind if the path contains the "#" character, so you might want to have a

cs
> folder rather than c#.
>
> --Bob
>
> "Paul Cotter" <(E-Mail Removed)> wrote in message
> news:cuan98$gk$(E-Mail Removed)...
> > First - is this the right venue for Visual C# questions?
> >
> > How do you duplicate a project. So if I have a directory
> >
> > c:\c#\projects\proj_1
> >
> > Containing proj_1.sln, proj_1.suo and a subdirectory
> > c:\c#\projects\proj_1\proj_1 that contains the source etc.
> >
> > How do I recreate this as proj_2 including the directory
> > c:\c#\projects\proj_2\proj1_2
> >
> > The complexity of the names I am using will probably lead you to the
> > (correct) idea I am fairly new at this...
> >
> >
> >

>
>



 
Reply With Quote
 
RCS
Guest
Posts: n/a
 
      8th Feb 2005
Yes, this is the right place..

And you should probably just use Windows Explorer to organize the
directories how you want.. is that what you mean?


"Paul Cotter" <(E-Mail Removed)> wrote in message
news:cuan98$gk$(E-Mail Removed)...
> First - is this the right venue for Visual C# questions?
>
> How do you duplicate a project. So if I have a directory
>
> c:\c#\projects\proj_1
>
> Containing proj_1.sln, proj_1.suo and a subdirectory
> c:\c#\projects\proj_1\proj_1 that contains the source etc.
>
> How do I recreate this as proj_2 including the directory
> c:\c#\projects\proj_2\proj1_2
>
> The complexity of the names I am using will probably lead you to the
> (correct) idea I am fairly new at this...
>
>
>



 
Reply With Quote
 
Bob Grommes
Guest
Posts: n/a
 
      8th Feb 2005
Just use Explorer to copy proj_1 with all its subfolders to proj_2. I don't
believe that you can rename subfolders as well, however. The project and
resource files tend to hold sufficiently qualified paths to different parts
of the project so that you end up having difficulties.

I seem to recall that some people have eventually encountered a bug of some
kind if the path contains the "#" character, so you might want to have a cs
folder rather than c#.

--Bob

"Paul Cotter" <(E-Mail Removed)> wrote in message
news:cuan98$gk$(E-Mail Removed)...
> First - is this the right venue for Visual C# questions?
>
> How do you duplicate a project. So if I have a directory
>
> c:\c#\projects\proj_1
>
> Containing proj_1.sln, proj_1.suo and a subdirectory
> c:\c#\projects\proj_1\proj_1 that contains the source etc.
>
> How do I recreate this as proj_2 including the directory
> c:\c#\projects\proj_2\proj1_2
>
> The complexity of the names I am using will probably lead you to the
> (correct) idea I am fairly new at this...
>
>
>



 
Reply With Quote
 
Rachel Suddeth
Guest
Posts: n/a
 
      8th Feb 2005
I would get rid of the .suo file before using a copy. You can start Visual
Studio without it; you just may have to reset the startup project if there
is more than one project.

The .sln file should have relative paths.

-Rachel

"Paul Cotter" <(E-Mail Removed)> wrote in message
news:cuarc7$2r9$(E-Mail Removed)...
>I noticed that when I inspected the inside of the proj_1.sln (a char 256
> file) and the proj_1.suo (a Unicode file) they both contained absolute
> addresses to c:\c#\projects\proj_1\proj_1. (as opposed to relative
> addresses of the form ..\proj_1)
>
> I was afraid that if I just copied the directories then the references
> would
> just point back at the original files and some form of corruption may take
> place. I suspect I can just manually edit these files, but wanted some
> confirmation.
>
> Thanks for the tip on not using c# as a directory name. I do not see the
> problem, but believe it could easily exist.
>
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Just use Explorer to copy proj_1 with all its subfolders to proj_2. I

> don't
>> believe that you can rename subfolders as well, however. The project and
>> resource files tend to hold sufficiently qualified paths to different

> parts
>> of the project so that you end up having difficulties.
>>
>> I seem to recall that some people have eventually encountered a bug of

> some
>> kind if the path contains the "#" character, so you might want to have a

> cs
>> folder rather than c#.
>>
>> --Bob
>>
>> "Paul Cotter" <(E-Mail Removed)> wrote in message
>> news:cuan98$gk$(E-Mail Removed)...
>> > First - is this the right venue for Visual C# questions?
>> >
>> > How do you duplicate a project. So if I have a directory
>> >
>> > c:\c#\projects\proj_1
>> >
>> > Containing proj_1.sln, proj_1.suo and a subdirectory
>> > c:\c#\projects\proj_1\proj_1 that contains the source etc.
>> >
>> > How do I recreate this as proj_2 including the directory
>> > c:\c#\projects\proj_2\proj1_2
>> >
>> > The complexity of the names I am using will probably lead you to the
>> > (correct) idea I am fairly new at this...
>> >
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copying Pages into new project ASP.Net 2.0 Josh Microsoft ASP .NET 5 19th Dec 2006 04:13 PM
Copying a project in VS .Net 2003 Pro =?Utf-8?B?U2FsdmFkb3I=?= Microsoft Dot NET 2 3rd Jul 2006 11:53 PM
Copying a project... frank@sinatra.com Microsoft VB .NET 3 9th Mar 2006 05:35 PM
Copying one project to another tshad Microsoft VB .NET 4 19th Jan 2006 12:40 PM
Copying a ASP.NET web project Christina Microsoft ASP .NET 5 26th Jul 2004 11:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:29 AM.