Copying winforms between projects in Visual Studio

后端 未结 18 2160
天涯浪人
天涯浪人 2020-12-13 18:16

What is the best way to copy or cut/past a form from one Project to another Project within a Solution in Visual Studio?

Whenever I try it, using the solution explore

18条回答
  •  情深已故
    2020-12-13 18:48

    Use ReSharper (get the demo), right-click the class in Code View, Refactor->Move, and move it to another project.

    The added benefit is that if you change the namespace by moving it between projects, it'll auto-update all references.

提交回复
热议问题