Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. How to safely rename directory?

How to safely rename directory?

Scheduled Pinned Locked Moved .NET (Core and Framework)
visual-studiocsharpquestionsysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    HamCoder
    wrote on last edited by
    #1

    I have a Solution (Sol_1) in its own directory with a regular project (Proj_1) and a deployment project(Proj_1_Setup). Each of the projects in its own directory and the directory name is the same as the project name. Then I needed to create a copy of the entire solution, rename the projects and the directories. I copied the Sol_1 directory to Sol_2. Then I started the VS IDE and used the Solution Explorer to rename the solution (Sol_2) and both projects (Proj_2 and Proj_2_Setup). That left me with a Sol_2 directory containing a Proj_1 sub-directory which contains a Proj_2 project. I also have a Proj_1_Setup sub-directory which contains a Proj_2_Setup project How do I safely rename the Proj_1 and Proj_1_Setup sub-directories without fouling up all internal places where the VS IDE keeps track of this stuff? FWIW, I'm using Visual Studio 2003 and the application uses VB.Net. Thanks. --Andy, WV8AA

    G 1 Reply Last reply
    0
    • H HamCoder

      I have a Solution (Sol_1) in its own directory with a regular project (Proj_1) and a deployment project(Proj_1_Setup). Each of the projects in its own directory and the directory name is the same as the project name. Then I needed to create a copy of the entire solution, rename the projects and the directories. I copied the Sol_1 directory to Sol_2. Then I started the VS IDE and used the Solution Explorer to rename the solution (Sol_2) and both projects (Proj_2 and Proj_2_Setup). That left me with a Sol_2 directory containing a Proj_1 sub-directory which contains a Proj_2 project. I also have a Proj_1_Setup sub-directory which contains a Proj_2_Setup project How do I safely rename the Proj_1 and Proj_1_Setup sub-directories without fouling up all internal places where the VS IDE keeps track of this stuff? FWIW, I'm using Visual Studio 2003 and the application uses VB.Net. Thanks. --Andy, WV8AA

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Make a backup of it all (for safety) and just rename the folders. When you open the solution VS should complain that it can't find the projects, and give you the option to locate them. --- b { font-weight: normal; }

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups