Solved

Moving projects....old path residue remains

Posted on 2004-08-13
10
247 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Resolve Dependency Issues 4 41
In WPF / C# binding a local database in code behind 1 24
SQL Login 17 37
ASP.NET 5 Templates 2 65
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

929 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now