Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rename existing solution and project in Visual Studio 2008? [duplicate]

Possible Duplicate:
how to rename a project without killing solution

I know that this question has been frequently asked, but none could help me overcome the fear of rendering my application useless by improper renaming of my solution,

I am working on a C# Windows application in VS 2008, as in initial step i was unaware of the fact that renaming is such a big issue in VS, i named the project "stock" but now that my project is nearly completed, my lead wants to rename the namespace to BetRates_NS as that is the name of the deployment setup project,

i even have web service references in my solution and other dependencies with the namespace name, ans based on my previous experience, renaming is not so easy in VS,

so can some1 please give me the exact step by step process to rename my solution so that the application might run smooth now and may not crash at a later point of time due to this.

i am totally hoping for some help here.....thanxx in advance......!!

this is my solution explorer screenie:

enter image description here

like image 349
Samy S.Rathore Avatar asked Aug 09 '12 07:08

Samy S.Rathore


1 Answers

Try this

Press CTRL + H then enter your old name that you wanna change to a new name

by the option look in, you can also choose current project or entire solution

Find and replace

You can also change your namespace in your project properties

Chage namespace or assembly name

** Or you can create a new solution, and add those projects to your new solution and build it

like image 87
JohnnBlade Avatar answered Sep 18 '22 00:09

JohnnBlade