?
Solved

Rename directory source code files are in

Posted on 2011-09-04
3
Medium Priority
?
264 Views
Last Modified: 2013-11-26
I would like to rename sub folder MyTestProject 20011-09-01 on the right to MyTestProject (see image). How can I do this so Visual Studio 2010 still knows where all my project files are?
MyTestProject.gif
0
Comment
Question by:deleyd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Accepted Solution

by:
pivar earned 668 total points
ID: 36481163
Hi,

If you just want to rename the solution/project, select the solution/project in solution explorer, then press F2 or change Name in properties window.
If you wan't to rename the physical folder. Close Visual Studio, rename the folder in Explorer.
If you changed the solutionname, just open the solutionfile in the new location.
If you changed the projectname, project will be listed as unavailable in solution explorer. Then you have to edit the File path property in properties window.

/peter
0
 
LVL 41

Assisted Solution

by:graye
graye earned 664 total points
ID: 36481461
The *.sln files and the associated project files (*.vbproj, *.csproj, *.vcproj, etc) are all just text-based XML files.

You can easily poke around them using NotePad (or any text editor) and tweak the directory names to match what you've changed them to
0
 
LVL 40

Assisted Solution

by:Jacques Bourgeois (James Burger)
Jacques Bourgeois (James Burger) earned 668 total points
ID: 36483097
Rename the directory, open the .sln and change the path to the project.

If you have standard projects configurations, you do not need to tweak the *.*proj files, since they contain relative paths to the files in the project.

In future projects, when you create the project, do not check the checkbox "Create Directory for Solution". The .sln will then be in the same directory as the *.*proj and all the paths will be relative, so you will be able to change the directory name at any time.

This the way I work with my training material. I can move it in any classroom or in the field when I give private training, and my sample applications can be installed in any directory.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

777 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