Visual Studio Copy Project

前端 未结 12 753
暗喜
暗喜 2020-12-04 07:02

I would like to make a copy of my project. I would rather not start doing it from scratch by adding files and references, etc. Please note that I don\'t mean copy for deploy

12条回答
  •  自闭症患者
    2020-12-04 07:33

    I follow these steps and I use the development tool called Resharper ,which is awesome by the way:

    So,

    1. Copy the existing project folder to the destination you want
    2. Go to source control and with right click just to the root folder you want and pick "Add items to folder...".Then, a wizard will come up to choose the files to copy (there is no need for some files and the wizard guides you for that reason by default).
    3. Change the name of the solution file (*.sln)
    4. Change the names of the sub-projects if exist.
    5. Use Resharper to change the binding namespaces name (I will automatic do the dirty job with safety).The alternative way is to manually change all namespaces with the new name.
    6. The same action with method names.
    7. Check solution's properties if you want to change.

    That's it. You are ready!!!

提交回复
热议问题