How to: Copy a project to create a new project

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm new to .NET development, although I have worked with VS2005 and VC++ for
a while.

A frequent task for me is to create a new project for a new version of my
program, without destroying the previous version. In VC++ I could use Windows
Explorer and copy the contents of the previous project folder to a new
project folder, and rename the project, start VS2005, and then add that new
project to a solution without much trouble.

That doesn't seem to work so well with C# .NET development.

Could you suggest strategies for copying a C# .NET project for creating a
new project?

Thanks,
Jim
 
Why doesn't it work? You should be able to copy the entire solution to
another folder, open it, and make whatever changes you want to.

Robin S.
 
Jim Walsh said:
I'm new to .NET development, although I have worked with VS2005 and VC++
for
a while.

A frequent task for me is to create a new project for a new version of my
program, without destroying the previous version. In VC++ I could use
Windows
Explorer and copy the contents of the previous project folder to a new
project folder, and rename the project, start VS2005, and then add that
new
project to a solution without much trouble.

That doesn't seem to work so well with C# .NET development.

Could you suggest strategies for copying a C# .NET project for creating a
new project?

The steps I have always done after copying the project contents were

Rename the project once it is open in VS
In Project Properties /Application rename output, namespace etc..
Select the namespace in any namespace declaration and do Rename refactoring

PS
 
Back
Top