renaming a project

  • Thread starter Thread starter boops boops
  • Start date Start date
B

boops boops

Perhaps this is obvious to everyone but me, but how do you rename an
existing project when using the .NET IDE? It allows you to save the
current form as something else, but not the whole project. Am I stuck
with going through all the files and directories and renaming them?
regards, boops boops (no relation of Betty)
 
The trouble is of course that projects and solutions are arranged in
directories of the same name so even if you rename a project you still have
the same directory name.

You can rename a project or solution by typing a new value into the solution
view. This changes the name of the project or solution file. You then need
to change the names of the assemblies generated by the project, this is done
in the project properties.

Finally, when the solution is closed you can rename the directories. Beware
however because if you have multiple projects in a single solution you need
to make sure that you update the projects after you've renamed them. This
will usually consist of you having to remove the projects that are not found
because you've changed the directory names and adding the existing projects
back again from the newly named directories. This will also imply that you
will need to verify and possibly modify the project dependencies and
build-order.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.





boops boops said:
Perhaps this is obvious to everyone but me, but how do you rename an
existing project when using the .NET IDE? It allows you to save the
current form as something else, but not the whole project. Am I stuck
with going through all the files and directories and renaming them?
regards, boops boops (no relation of Betty)
 
Thanks, Bob. That 'of course' doesn't apply to me because I am still a
pretty vague about many aspects of vb.net, having plunged straight in
at the deep end without knowing any visual basic. Your GDI+ tutorial
has been a boon.
regards, bb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top