A textbook by Carli Watson on Visual Studio 2005 C# recommends copying
a solution file and renaming it from inside Solution Explorer "this
also renames the solution and project files".
I take it the author must be mistaken, from the below.
If there's an easy way, please let me know.
RL
neilsan...@yahoo.com View profile
More options Oct 25 2005, 7:01 am
Hi,
I was wondering how someone could rename a solution (project) and all
associated files/folders? When we create a new project it seems to be
the only chance to give a proper name to a project... If we find a
better name later, it seems impossible to rename the whole shebang!
Any ideas?
neilsanner
Reply to author Forward Rate this post:
Carlos J. Quintero [VB MVP] View profile
More options Oct 25 2005, 7:48 am
Which is the exact problem renaming?
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and
VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
<neilsan...@yahoo.com> escribió en el mensaje
news:1130248896.408224.297330@o13g2000cwo.googlegroups.com...
- Show quoted text -
Reply to author Forward Rate this post:
neilsan...@yahoo.com View profile
More options Oct 25 2005, 8:17 am
Example:
-Create a new project and name it WindowApplication2
-It will create a directory structure with WindowApplication2 for the
folders names and files names.
-It will also, in VS, give the name WindowApplication2 to the
project.
-If I decide to rename that application to MyApplication, is there an
easy way to do this, so it renames all of the above?
neilsanner
Carlos J. Quintero [VB MVP] wrote:
- Show quoted text -
Reply to author Forward Rate this post:
Carlos J. Quintero [VB MVP] View profile
More options Oct 27 2005, 2:10 am
Ah, yes there is no easy way to do that in one step. You can change
the
names and file names of the solution and projects using the
Properties
Window, but AFAIK, you can' t change the folder names unless you edit
some
.sln or .vbproj files by hand with a text editor.
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and
VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
<neilsan...@yahoo.com> escribió en el mensaje
news:1130253464.868117.231110@g14g2000cwa.googlegroups.com...
Example:
-Create a new project and name it WindowApplication2
-It will create a directory structure with WindowApplication2 for the
folders names and files names.
-It will also, in VS, give the name WindowApplication2 to the
project.
-If I decide to rename that application to MyApplication, is there an
easy way to do this, so it renames all of the above?
neilsanner
Carlos J. Quintero [VB MVP] wrote:
- Show quoted text -
Reply to author Forward Rate this post:
neilsan...@yahoo.com View profile
More options Oct 28 2005, 6:01 am
Hi Carlos,
That's what I thought. I was hoping for an easier way. I wonder why
they didn't include such a function, since it's something that might
happen quite often.
I've thought of another way of doing this (never tested yet). Create
a
new project with the desired name; save it at the desired directory;
import components from the project to rename.
Thanks! An have a great weekend!
neilsanner
Carlos J. Quintero [VB MVP] wrote:
- Show quoted text -
Reply to author Forward Rate this post:
Nathan Mates - 26 Oct 2007 07:07 GMT
>If there's an easy way, please let me know.
.sln and .vcproj files are just text files. Open them in notepad
(or your favorite text editor), and do some search-and-replace. It's
not an "easy" method, if you're the type that uses the mouse more than
the keyboard. [I'm certainly not in that category.] But, it works.
Nathan Mates
--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
raylopez99@yahoo.com - 26 Oct 2007 10:44 GMT
> In article <1193338526.438930.265...@19g2000hsx.googlegroups.com>,
>
[quoted text clipped - 4 lines]
>
> Nathan Mates
I just tried renaming all files as suggested--it doesn't work.
The format for .sln and .vcproj files seems to be XML format, which,
as you say, can be edited as a text file. But also apparently you
must change the directory names (it seems), since the project does
load, but you get a message saying "Project file or web cannot be
found" and no files are loaded within Solution Explorer. I am
speculating the path itself (directory names) have to also be changed.
I have a better workaround--just work with the original names and
forget about renaming!
RL
Apparently the directory