Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I rename my c# namespace to include a dot

I want to rename my namespace, MyProjectTest.Core to MyProject.Test.Core, but the Visual Studio 2017 refactoring tool doesn't let me insert . into the name.

I do not want to do that manually, is there another option?

like image 333
NoRelect Avatar asked Dec 04 '22 19:12

NoRelect


1 Answers

It is correct, you can not use your keyboard key . to enter a dot, however, you can use CTRL+C to copy the dot character (from this answer, if you want) and then insert the dot into the name with CTRL+V.

Note: Visual Studio 2017 will complain about invalid characters, but it will rename it anyway if you click apply:

Visual Studio 2017 complaining about the invalid character 1 Visual Studio 2017 complaining about the invalid character 2

like image 152
NoRelect Avatar answered Dec 06 '22 10:12

NoRelect