Search code examples
visual-studio-2008refactoringresharperprojects-and-solutionsresharper-4.5

Move type from one project to another via ReSharper?


I have several interfaces and classes that I have in my business layer project and I want to move them into a brand new project. I am using ReSharper 4.5.2. Is there any way I can do that easily and with no pain? I know about the move type functionality, but it seems like it will only do it within the same project.


Solution

  • You can just drag and drop the files in the solution window, then use ReSharper to automatically add the references and fix any namespace issues.

    I've done it - it's not as 1-operation as the move type operation, but it's still very fast.


    FYI - ReSharper 5.0 Beta 2 now supports this, directly, by right clicking on a file in the solution window, and choosing Refactor > Move.