Changing a C# project name in Visual Studio

By Dag, on October 26th, 2018

1. Close Visual Studio if it's open.
2. Rename all relevant folders and .sln, .csproj files.
Optionally delete folders under bin as they are no longer relevant.
3. Start project/.sln and ignore initial errors and warnings.
4. Choose the currently unavailable project and go to its properties.
Change the File path property to the new .csproj file. Right-click
and reload project.
5. Go to project/application properties. Change Assembly name and
Default namespace. Change Assembly information.
6. Go to a source file and right-click namespace, rename it
(include comments and strings) and apply to refactor all references.
Restart the project to check that everything is OK and for a total refresh.