Solved

Moving projects....old path residue remains

Posted on 2004-08-13
10
257 Views
Last Modified: 2010-04-15
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
Comment
Question by:knowlton
10 Comments
 
LVL 5

Author Comment

by:knowlton
ID: 11797826
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
 
LVL 1

Assisted Solution

by:bspotswood
bspotswood earned 200 total points
ID: 11798020
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
 
LVL 21

Assisted Solution

by:tovvenki
tovvenki earned 50 total points
ID: 11798715
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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11800694
knowlton: After going through this once I began to use relative paths ... tends to ease this issue.
0
 
LVL 5

Author Comment

by:knowlton
ID: 11802641
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
 
LVL 5

Author Comment

by:knowlton
ID: 11802650
csproj.user  is where the old path is.
0
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 250 total points
ID: 11803030
yes but when you come through build paths etc change them to relative paths instead if the default (..\whatever\bin\)
0
 
LVL 5

Author Comment

by:knowlton
ID: 11857553
I think I understand what you mean.
0
 
LVL 5

Author Comment

by:knowlton
ID: 11875813
The key is the use of   "  ..\  "


Instead of spelling it all the way out?????
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11876395
yes ..\..\whatever is a relative path from the root of the project
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question