Making copy/duplicate of ASP.NET project

georgeb3
georgeb3 used Ask the Experts™
on
Hello,

I know this topic has been covered a lot and I've read through teh past posts but still cannot seem to get this to work.
I need to take an existing web app project and duplicate it within the same solution with a different name.

Short of creating a new project with a new name and copying all old files into the new project and then using find and replace to change the @Page Inherits directive for my code-behind files, is there an easier way?

I've tried copying the old project into a new folder and editing the vbproj file and the webinfo files...if i give the new project assembly a different name, then it says it can't load the code behind files...if i give it the same name then I receive namespace collision warnings (old project.object collides with new project.object names).

I'm finding this WAYYYY harder than it really should be.

Any help would be appreciated.

George
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Why do you need to be able to do this?
Commented:
What you can do is select the Project in the solution view and at the top near the refresh button there should be a button that says "Copy Project" when you hover over it. You can also go to "Project" on the file menu and the option is in there too.

Author

Commented:
thanks...I figured it out...I did end up using the copy project, then renamed the vbproj file (not renaming it won't allow you to readd the new copy to the solution) then added the copy to the solution. Then i had to change the project settings (assembly name and root), then replaced all @Page directive Inherits attributes with the new assembly name and it worked.

Thanks anyhow!
George

Commented:
So do I not get an accepted answer for this? I told you to do what you did and it worked.

Commented:
Ok, sorry, I wrote that before I refreshed i guess. Thanks!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial