Answered by:
Copy And Rename VS2015 VB.Net Project

Question
-
I have a VB.Net project / Application that i created in Visual Studiot 2015 that I would like to Copy to a NEW location and Rename the project to something different. What is the BEST and Safest way to do this?
Paul
Thursday, January 4, 2018 7:10 PM
Answers
-
Hi Paul,
Thank you for your explanation.
If I misunderstand it, you can do like this:
(1) copy FOLDER where contains "Project_A" and other components.
(I recommend you to create a new folder and copy the FOLDER there.)
(2) open the original "Project_A" and rename your project and/or solution as you like ("Project_NEW" etc) in Solution Explorer.
The below pictures show Renaming "DCP3" to something.
Regards,
Ashidacchi
- Edited by Ashidacchi Friday, January 5, 2018 3:22 AM
- Marked as answer by Paul 2 U Monday, January 8, 2018 2:30 PM
Friday, January 5, 2018 3:20 AM -
Hi Paul 2 U,
Welcome to MSDN forum.
Firstly, right click on your VB project and paste it to the other location. (the changes on the copied project will not affect original project )
To rename a project's folder, file (.*proj) and display name in visual studio:
- Close the solution.
- Rename the folder(s) outside Visual Studio.
- Open the solution, ignoring the warnings (answer "no" if asked to load a project from source control).
- Go through all the unavailable projects and...
- Open the properties window for the project (highlight the project and press Alt+Enter or F4, or right-click > properties).
- Set the property 'File Path' to the new location.
- If the property is not editable, then open the .sln file directly in another editor such as Notepad++ and update the paths there instead.
- Reload the project - right-click > reload project.
- Change the display name of the project, by highlighting it and pressing F2, or right-click > rename.
Note: Other suggested solutions that involve removing and then re-adding the project to the solution will break project references.
If you perform these steps then you might also consider renaming the following to match:
- Assembly
- Default/Root Namespace
- Namespace of existing files (use the refactor tools in Visual Studio or ReSharper's inconsistent namespaces tool)
Also consider modifying the values of the following assembly attributes:
- AssemblyProductAttribute
- AssemblyDescriptionAttribute
- AssemblyTitleAttribute
refer: https://stackoverflow.com/questions/211241/how-to-rename-a-project-folder-from-within-visual-studio
Best regards,
Joyce
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
- Proposed as answer by Joyce YinMicrosoft contingent staff Monday, January 8, 2018 8:15 AM
- Marked as answer by Paul 2 U Monday, January 8, 2018 2:30 PM
Friday, January 5, 2018 6:58 AM
All replies
-
I want to make sure that whatever changes that I make to the NEWLY Renamed / Copied project DOES NOT carry over to original project. Thank you.
Paul
Thursday, January 4, 2018 7:13 PM -
Hi,
Sorry, I cannot understand your needs. What is your target question? Is it a process for copying/renaming in your project, or your project itself?
If it is your project, please save current project in other folder with renaming.
I'm doing like this:
Regards,
Ashidacchi
- Edited by Ashidacchi Thursday, January 4, 2018 11:22 PM
Thursday, January 4, 2018 11:13 PM -
I have a VB.Net Prject called "Project_A.vbproj" which has approx 12 forms, 20 Datasets and several other files. I want to make a copy of this project and call it "Project_NEW.vbproj" and place this project in a different location. I want to make many changes to this "Project_NEW.vbproj" and make sure that it these changes do NOT affect my original project "Project_A.vbproj" Hope that this makes more sense?
Paul
Friday, January 5, 2018 12:47 AM -
Hi Paul,
Thank you for your explanation.
If I misunderstand it, you can do like this:
(1) copy FOLDER where contains "Project_A" and other components.
(I recommend you to create a new folder and copy the FOLDER there.)
(2) open the original "Project_A" and rename your project and/or solution as you like ("Project_NEW" etc) in Solution Explorer.
The below pictures show Renaming "DCP3" to something.
Regards,
Ashidacchi
- Edited by Ashidacchi Friday, January 5, 2018 3:22 AM
- Marked as answer by Paul 2 U Monday, January 8, 2018 2:30 PM
Friday, January 5, 2018 3:20 AM -
Hi Paul 2 U,
Welcome to MSDN forum.
Firstly, right click on your VB project and paste it to the other location. (the changes on the copied project will not affect original project )
To rename a project's folder, file (.*proj) and display name in visual studio:
- Close the solution.
- Rename the folder(s) outside Visual Studio.
- Open the solution, ignoring the warnings (answer "no" if asked to load a project from source control).
- Go through all the unavailable projects and...
- Open the properties window for the project (highlight the project and press Alt+Enter or F4, or right-click > properties).
- Set the property 'File Path' to the new location.
- If the property is not editable, then open the .sln file directly in another editor such as Notepad++ and update the paths there instead.
- Reload the project - right-click > reload project.
- Change the display name of the project, by highlighting it and pressing F2, or right-click > rename.
Note: Other suggested solutions that involve removing and then re-adding the project to the solution will break project references.
If you perform these steps then you might also consider renaming the following to match:
- Assembly
- Default/Root Namespace
- Namespace of existing files (use the refactor tools in Visual Studio or ReSharper's inconsistent namespaces tool)
Also consider modifying the values of the following assembly attributes:
- AssemblyProductAttribute
- AssemblyDescriptionAttribute
- AssemblyTitleAttribute
refer: https://stackoverflow.com/questions/211241/how-to-rename-a-project-folder-from-within-visual-studio
Best regards,
Joyce
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
- Proposed as answer by Joyce YinMicrosoft contingent staff Monday, January 8, 2018 8:15 AM
- Marked as answer by Paul 2 U Monday, January 8, 2018 2:30 PM
Friday, January 5, 2018 6:58 AM