Groups | Blog | Home
all groups > visual studio .net general > october 2005 >

visual studio .net general : How to - Rename a solution (project) and all associated files/folders



Carlos J. Quintero [VB MVP]
10/25/2005 12:00:00 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

<neilsanner@yahoo.com> escribió en el mensaje
news:1130248896.408224.297330@o13g2000cwo.googlegroups.com...
[quoted text, click to view]

neilsanner NO[at]SPAM yahoo.com
10/25/2005 7:01:36 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
neilsanner NO[at]SPAM yahoo.com
10/25/2005 8:17:44 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


[quoted text, click to view]
Carlos J. Quintero [VB MVP]
10/27/2005 11:10:30 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

<neilsanner@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


[quoted text, click to view]

neilsanner NO[at]SPAM yahoo.com
10/28/2005 6:01:52 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


[quoted text, click to view]
AddThis Social Bookmark Button