在 Visual Studio 2010 中,我有一个名为 blahblah 的 ASP.NET MVC 3 项目。因此,该项目中的所有代码都命名为 blahblah.Controllers、blahblah.Configuration 等。
我希望能够将项目重命名为 blahblah.Web。现在我知道我可以右键单击该项目并进行重命名,但如果我这样做,所有命名空间都不再匹配。
我想要一些方法来转换所有命名空间,以便它与新项目名称相关。 blahblah.Web.Controllers、blahblah.Web.Configuration 等
有没有简单的方法来做到这一点?
最佳答案
是的,使用 ReSharper 的“重构”菜单并选择“调整命名空间”。 http://www.jetbrains.com/resharper/webhelp/Refactorings__Adjust_Namespaces.html
关于c# - Visual Studio 2010 重命名项目并使命名空间对应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9807046/