Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Renaming a solution and project file is still impossible (or very hard), no?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
raylopez99@yahoo.com - 25 Oct 2007 19:55 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.