Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3806802
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T14:53:29+00:00 2026-05-19T14:53:29+00:00

First, a little background. Currently namespaces and assemblies in our codebase (~60 assemblies, thousands

  • 0

First, a little background.

Currently namespaces and assemblies in our codebase (~60 assemblies, thousands of classes) looks like

WidgetCompany.Department.Something

We have now been spun off such that we are selling the software that drives a WidgetCompany, so we ‘d like to rename the namespaces & assemblies

NewCompany.Something

Under normal circumstances I’d probably just stick with the old namespace, but the problem is our customers don’t want to see the name of one of their competitors anywhere in the application. In the off chance that they see a stack trace, assembly properties etc, it shouldn’t show up. It’s not meant to hide our associates or do anything sinister, we just need to make sure that people know we are a separate entity, separate management, and they don’t need to worry about data being shared etc.

Now the question. What is the best way to perform this type of all encompassing rename?
The following would need to change:

  • Namespace for (almost) every class in
    the application
  • Every using statement in the application which references the old names
  • Folder structure for each project
  • References between projects which rely on changed folder structure
  • .Sln files which reference the changed folder structure
  • Any references to
    those classes which are fully
    qualified (should be few and far
    between)
  • Any references to those
    classes in xml config files (config
    sections etc)
  • AssemblyInfo.cs files for every assembly
  • AssemblyName in every .csproj file

Am I stuck with the find-replace-pray strategy or is there something better?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T14:53:30+00:00Added an answer on May 19, 2026 at 2:53 pm

    Right click on your current namespace and select Refactor -> Rename and change the name in the pop up that comes up after a while. Enter your new name and click ok.

    If you have multiple depths to your namespace, then Visual Studio won’t let you type a dot. However, if you copy and paste a dot, despite a warning, it will do the business.

    To completely change to the new name, you will likely need to make additional changes manually. You can find where by performing a project search (ctrl+shift+f) for other references to the name in the Project, Solution, or other supporting files from a separate text editor like VS Code. Finally, folders may need to be changed manually as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First, a little background: I'm displaying a data set with 288 rows and 8
I'll give you a little bit of background first as to why I'm asking
First a little background : I'm working on an enterprise application (ear) with an
First a little background. I got a warning in NetBeans told me not to
First of all a little background of my problem, i'm trying to identify how
First a little intro: Last year i wrote this http://dragan.yourtree.org/code/canvas-3d-graph/ Now, i want to
First question on here so please be nice :) I know very little about
I know this question might sound a little cheesy but this is the first
OK, having tried my first TDD attempt, it's time to reflect a little and
A little background: I have the opportunity to present the idea of a public

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.