Click here to Skip to main content
15,845,681 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,
I Just want to know the how to rename the namespace without affecting the other files in the project.
I am getting Code Analysis error like 'CA1709 Identifiers should be cased correctly' This is related to namespace name should be start with lowercase letter. So i am asking this question.
Posted
Comments
BillWoodruff 13-Nov-14 14:33pm    
I think it would help if you gave an example of what you are doing ... the NameSpace name before and after ... that produces this managed code warning.
vasanthkumarmk 13-Nov-14 14:42pm    
Sorry for that, For some security purpose i could not post entire code here....
I just want to change my namespace name Ex: namespace MY.Pro.Tools.Sign.UI -> But i want to change it to my.Pro.Tools.Sign.UI....
PIEBALDconsult 13-Nov-14 14:54pm    
"namespace name should be start with lowercase letter"
bullsh*t!

Name it whatever you darn well please.

1 solution

You should use the Refactor from the Visual Studio's options to Rename things.

You can learn more on Rename Refactoring here[^]. You should consider reading the table, and the namespace section in it. It explains the work done by the Refactoring tool.
 
Share this answer
 
Comments
vasanthkumarmk 13-Nov-14 14:34pm    
I have existing with some other name. Just i want to rename that one.
Afzaal Ahmad Zeeshan 13-Nov-14 14:40pm    
You can read this blog post for that. http://www.codeproject.com/Articles/413095/Refactor-your-Code-easily-using-the-Visual-Studio
vasanthkumarmk 13-Nov-14 14:52pm    
Sure...
vasanthkumarmk 13-Nov-14 14:54pm    
But in that is not mentioned about namespace refactoring.
Sergey Alexandrovich Kryukov 13-Nov-14 15:42pm    
After all, just try. What are you going to loose? :-)
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900