How to make a Copy of a Project/Solution in Microsoft Visual Studio 2012?

后端 未结 2 1760
遥遥无期
遥遥无期 2021-01-17 18:05

As title states: How to make a Copy of a Project/Solution in Microsoft Visual Studio 2012?

It is such a simple option, and it seems to be unavailable.

2条回答
  •  渐次进展
    2021-01-17 18:40

    What I've found to work so far, assume you have a solution folder structure like so:

    mysolution
        mysolution
        mysolution.sln
    

    You then copy (literally Ctrl+C & Ctrl-V) everything so it looks like this:

    mysolution
        mysolution
        mysolution-copy
        mysolution.sln
        mysolution-copy.sln
    

    Open file mysolution-copy.sln with a text editor and replace "mysolution\mysolution.vbproj" with "mysolution-copy\mysolution.vbproj"

    Then open mysolution-copy.sln file with Visual Studio and build it...now it should all work again.

提交回复
热议问题