如何在项目中重命名命名空间。 [英] How to rename namespace in the project.

查看:107
本文介绍了如何在项目中重命名命名空间。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我只是想知道如何重命名命名空间而不影响项目中的其他文件。

我得到的代码分析错误就像'应正确装入CA1709标识符'这与名称空间名称相关应以小写字母开头。所以我问这个问题。

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.

推荐答案

您应该使用Visual Studio选项中的重构来重命名。



您可以在这里了解有关重命名重构的更多信息 [ ^ ]。您应该考虑读取表格,以及其中的命名空间部分。它解释了重构工具所做的工作。
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.


这篇关于如何在项目中重命名命名空间。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆