Change namespace/filesystem folder names in Visual Studio

Posted by Rosarch on Stack Overflow See other posts from Stack Overflow or by Rosarch
Published on 2010-04-12T23:15:52Z Indexed on 2010/04/13 1:03 UTC
Read the original article Hit count: 388

Filed under:
|
|
|

I'm trying to change a namespace in Visual Studio.

My folder structure looks something like this:

GameAlpha/
         GameAlpha.sln
         GameAlphaRelease/
         GameAlphaTest/
         GameAlphaLevelEditor/

These include namespaces like GameAlphaRelease. I want to change all this to GameBetaRelease.

Before this process, it built fine.

First, I changed the solution and project files from Alpha to Beta. Then, I did a "find-replace-all" on the namespace. Finally, I went through the properties of each project and changed the "Assembly Name" and "Default Namespace" to the appropriate Beta title.

However, now the solution does not build. The error is:

GameAlpha.accessor: The reference to 'GameAlpha.exe' was not found in the list of this projects references. (Project: GameBetaTest)

What am I doing wrong? If I remove project GameBetaTest, the solution builds just fine.

Also, what is the preferable way to change the names of the folders in the file system?

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about ide