Home All Groups Group Topic Archive Search About

Copying one project to another

Author
19 Jan 2006 4:52 AM
tshad
I have an old version of VS 2002 and want to make a copy of my Visual Studio
project to another project with another name.  In VS 2003, you can do it but
there is no copy project command in VS 2002 (at least I can't seem to find
it).

Is there a way to do it?

Thanks,

Tom

Author
19 Jan 2006 5:30 AM
latin & geek via DotNetMonster.com
erm. how about just finding your visual studio projects folder and copying
the required folder within that like any other windows op?  if you want, you
can then open the new and renamed folder, and rename the forms so as to avoid
any confusion.

it's what i usually do... not rocket science but it works! :))


tshad wrote:
>I have an old version of VS 2002 and want to make a copy of my Visual Studio
>project to another project with another name.  In VS 2003, you can do it but
>there is no copy project command in VS 2002 (at least I can't seem to find
>it).
>
>Is there a way to do it?
>
>Thanks,
>
>Tom

--
it's all latin & geek to me! ;-)

Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-vb-net/200601/1
Author
19 Jan 2006 11:49 AM
tshad
"latin & geek via DotNetMonster.com" <u16975@uwe> wrote in message
news:5a9339e89fc40@uwe...
> erm. how about just finding your visual studio projects folder and copying
> the required folder within that like any other windows op?  if you want,
you
> can then open the new and renamed folder, and rename the forms so as to
avoid
> any confusion.
>
If that works that's great.  My concern is different references in the
project pointing at files that won't be there if you rename them.  This used
to be a problem with VS and don't know if that is still the case.

Thanks,

Tom
Show quoteHide quote
> it's what i usually do... not rocket science but it works! :))
>
>
> tshad wrote:
> >I have an old version of VS 2002 and want to make a copy of my Visual
Studio
> >project to another project with another name.  In VS 2003, you can do it
but
> >there is no copy project command in VS 2002 (at least I can't seem to
find
> >it).
> >
> >Is there a way to do it?
> >
> >Thanks,
> >
> >Tom
>
> --
> it's all latin & geek to me! ;-)
>
> Message posted via DotNetMonster.com
> http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-vb-net/200601/1
Author
19 Jan 2006 12:40 PM
tshad
Show quote Hide quote
"tshad" <t**@dslextreme.com> wrote in message
news:%23L5O$2OHGHA.1132@TK2MSFTNGP10.phx.gbl...
> "latin & geek via DotNetMonster.com" <u16975@uwe> wrote in message
> news:5a9339e89fc40@uwe...
> > erm. how about just finding your visual studio projects folder and
copying
> > the required folder within that like any other windows op?  if you want,
> you
> > can then open the new and renamed folder, and rename the forms so as to
> avoid
> > any confusion.
> >
> If that works that's great.  My concern is different references in the
> project pointing at files that won't be there if you rename them.  This
used
> to be a problem with VS and don't know if that is still the case.

I just tried to move the Project folder and rename the files and found
certain values in various folders that still point at the old file name.

For example:

The .vbproj has the following (CreateSVC is the old name and SearchAgents is
the new name):

                ApplicationIcon = ""
                AssemblyKeyContainerName = ""
                AssemblyName = "CreateCSV"
                AssemblyOriginatorKeyFile = ""
                AssemblyOriginatorKeyMode = "None"
                DefaultClientScript = "JScript"
                DefaultHTMLPageLayout = "Grid"
                DefaultTargetSchema = "IE50"
                DelaySign = "false"
                OutputType = "WinExe"
                OptionCompare = "Binary"
                OptionExplicit = "On"
                OptionStrict = "Off"
                RootNamespace = "CreateCSV"
                StartupObject = "CreateCSV.Form1"

The .sln file has the old names and various GUIDs.  I assume there would be
a problem if both projects use the same GUIDS:

Microsoft Visual Studio Solution File, Format Version 7.00
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "CreateCSV",
"CreateCSV.vbproj", "{619A19B0-B845-459B-B93C-A91DD21F93BF}"
EndProject
Global
  GlobalSection(SolutionConfiguration) = preSolution
    ConfigName.0 = Debug
    ConfigName.1 = Release
  EndGlobalSection
  GlobalSection(ProjectDependencies) = postSolution
  EndGlobalSection
  GlobalSection(ProjectConfiguration) = postSolution
    {619A19B0-B845-459B-B93C-A91DD21F93BF}.Debug.ActiveCfg = Debug|.NET
    {619A19B0-B845-459B-B93C-A91DD21F93BF}.Debug.Build.0 = Debug|.NET
    {619A19B0-B845-459B-B93C-A91DD21F93BF}.Release.ActiveCfg = Release|.NET
    {619A19B0-B845-459B-B93C-A91DD21F93BF}.Release.Build.0 = Release|.NET
  EndGlobalSection
  GlobalSection(ExtensibilityGlobals) = postSolution
  EndGlobalSection
  GlobalSection(ExtensibilityAddIns) = postSolution
  EndGlobalSection
EndGlobal

The .suo file also has the old name in it.

Tom
Show quoteHide quote
>
> Thanks,
>
> Tom
> > it's what i usually do... not rocket science but it works! :))
> >
> >
> > tshad wrote:
> > >I have an old version of VS 2002 and want to make a copy of my Visual
> Studio
> > >project to another project with another name.  In VS 2003, you can do
it
> but
> > >there is no copy project command in VS 2002 (at least I can't seem to
> find
> > >it).
> > >
> > >Is there a way to do it?
> > >
> > >Thanks,
> > >
> > >Tom
> >
> > --
> > it's all latin & geek to me! ;-)
> >
> > Message posted via DotNetMonster.com
> > http://www.dotnetmonster.com/Uwe/Forums.aspx/dotnet-vb-net/200601/1
>
>
Author
19 Jan 2006 5:37 AM
Cor Ligthert [MVP]
Tshad,

Because of some disapointing expiriences probably with version 2002, do I
now use only explorer for this kind of operations.

(Not for using one project with another where I use the Add project).

I hope this helps,

Cor