Tahapan me-rename project (folder dan namespace) pada Visual Studio
To rename a project’s folder, file (.*proj) and display name in visual studio:
- Close the solution.
- Rename the folder(s) outside Visual Studio. (Rename in TFS if using source control)
- Open the solution, ignoring the warnings (answer “no” if asked to load a project from source control).
- Go through all the unavailable projects and…
- Open the properties window for the project (highlight the project and press Alt-Enter or F4, or right-click > properties).
- Set the property ‘File Path’ to the new location.
- If the property is not editable (as in VS2012), then open the .sln file directly in another editor such as notepad++ and update the paths there instead. (You may need to check-out the sln first in TFS etc.)
- Reload the project – right-click > reload project.
- Change the display name of the project, by highlighting it and pressing F2, or right-click > rename.
http://stackoverflow.com/questions/211241/how-do-i-rename-a-project-folder-from-within-visual-studio
Error yang mungkin muncul
A route named “x” is already in the route collection. Route names must be unique.
Solusi: hapus semua file pada folder bin
Compiler Error Message: CS0246
Solusi: mengubah namespace pada Views\Web.config
http://stackoverflow.com/questions/21841552/compiler-error-message-cs0246-when-i-renamed-my-project