how to completely rename a project in visual studio 2008(Vb.net)
with all the files
plz help..

Dani AI

Generated

is right that VS2008 won’t rename every artifact for you. Below is a safe, practical checklist that finishes the job and avoids common breakages.

  1. Back up or commit everything first.
  2. In Solution Explorer rename the project node (right‑click → Rename). Then open Project Properties (My Project) and change the Assembly name and Root namespace to the new name. Build to catch obvious errors.
  3. Close Visual Studio. On disk rename the project folder and the .vbproj file to the new name. If you renamed the folder, update the .sln entry that points to the project (open the .sln in a text editor and fix the path/name).
  4. Edit the .vbproj if needed: change the <AssemblyName> and <RootNamespace> values to the new name. Do not change the project GUID unless you know what you’re doing.
  5. Open the solution in Visual Studio, reload the project if prompted, then do a Clean and Rebuild. Use Find in Files (Ctrl+Shift+F) to locate any remaining references to the old project name (config keys, installer projects, settings, resource strings, comments). Replace carefully—use “Match whole word” when appropriate.
  6. Fix references: if other projects referenced this project by file name or binary name, update those references or re-add the project reference. Check setup projects, COM registrations, and any external scripts that load the assembly by name.

Example edits (replace placeholders with your names):

# in the .sln (example line)
Project("{PROJECT-TYPE-GUID}") = "OldName", "OldName\OldName.vbproj", "{PROJECT-GUID}"
# -> change to:
Project("{PROJECT-TYPE-GUID}") = "NewName", "NewName\NewName.vbproj", "{PROJECT-GUID}"
# in the .vbproj
<AssemblyName>OldName</AssemblyName>
<RootNamespace>OldName</RootNamespace>
# -> change both to NewName

Final notes: if the project is under source control, perform the rename through source control (to preserve history) or be ready to re-add files. If the assembly was strongly named or other apps depend on its exact assembly name, update those consumers too. After the rename, run the app and tests to find any runtime namespace or resource issues.

Recommended Answers

All 2 Replies

There is unfortunately no automatic way of doing this. But you can easily do it manually.
Go to your project folder, then rename every file/folder with your old project's name. Then load it into VS again (double-click your solution/project file) and go to My Project and rename everything there.
I am not really sure (I currently don't have VS 2008 installed) but I did it before.
In advance, check this out: http://bit.ly/Z1JQlN

-Sydcul

thank u ...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.