Solved

Rename directory source code files are in

Posted on 2011-09-04
3
251 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
3 Comments
 
LVL 22

Accepted Solution

by:
pivar earned 167 total points
Comment Utility
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 166 total points
Comment Utility
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 167 total points
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

763 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

11 Experts available now in Live!

Get 1:1 Help Now