Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Making copy/duplicate of ASP.NET project

Posted on 2006-10-20
5
206 Views
Last Modified: 2006-11-18
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
0
Comment
Question by:georgeb3
  • 4
5 Comments
 
LVL 28

Expert Comment

by:strickdd
ID: 17775234
Why do you need to be able to do this?
0
 
LVL 28

Accepted Solution

by:
strickdd earned 500 total points
ID: 17775252
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.
0
 
LVL 1

Author Comment

by:georgeb3
ID: 17775918
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
0
 
LVL 28

Expert Comment

by:strickdd
ID: 17775981
So do I not get an accepted answer for this? I told you to do what you did and it worked.
0
 
LVL 28

Expert Comment

by:strickdd
ID: 17775991
Ok, sorry, I wrote that before I refreshed i guess. Thanks!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question