• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

Moving projects....old path residue remains

I have several projects that were created under a certain path.

Now, I want to move these projects to a new location.

I know that internally in the source code files....the OLD path is still there  (for example, in the PDB files for debugging).


Is there an easy way to force the PATH to get updated to the new location?

Recommendations?


Thanks,

Tom
0
Tom Knowlton
Asked:
Tom Knowlton
3 Solutions
 
Tom KnowltonWeb developerAuthor Commented:
Also...how can I update the csproj.user file   (short of opening it in Notepad.exe and changing the path...which I could do if I had to but would prefer not to)????
0
 
bspotswoodCommented:
Well, you could use the "Replace in files" dialog to scan your files and replace them.

from the Edit Menu -> Find and Replace -> Replace in Files (or use the shortcut: CTRL + SHIFT + H)

You can specify the directory being replaced in "Find what", the directory to change it to in "Replace with" and then maybe check the box for "Keep modified files open after replace all" just to see what files were changed.

If you do this though, you might want to just make sure you backup your source before you run it just incase. ;)
0
 
tovvenkiCommented:
Hi,
I think that once you move your project to a new directory you have to just remove all the files in the bin directory, open the solution abd just do a rebuild.

Hope that this helps you
Regards,
venki
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
gregoryyoungCommented:
knowlton: After going through this once I began to use relative paths ... tends to ease this issue.
0
 
Tom KnowltonWeb developerAuthor Commented:
Greg:

>>>relative paths ... tends to ease this issue.

Not sure what you mean....these paths I'm talking about are established by the VS IDE when I create a New Project.
0
 
Tom KnowltonWeb developerAuthor Commented:
csproj.user  is where the old path is.
0
 
gregoryyoungCommented:
yes but when you come through build paths etc change them to relative paths instead if the default (..\whatever\bin\)
0
 
Tom KnowltonWeb developerAuthor Commented:
I think I understand what you mean.
0
 
Tom KnowltonWeb developerAuthor Commented:
The key is the use of   "  ..\  "


Instead of spelling it all the way out?????
0
 
gregoryyoungCommented:
yes ..\..\whatever is a relative path from the root of the project
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now