简体   繁体   English

重命名大型解决方案中的项目后,Visual Studio 2010挂起

[英]Visual Studio 2010 hangs after renaming projects in large solution

I have 1 large solution (about 100 c# projects and 20 c++ projects) in VS2010 + Resharper. 我在VS2010 + Resharper中有1个大型解决方案(大约100个c#项目和20个c ++项目)。

Well known steps for c# project renaming : C#项目重命名的众所周知的步骤:

  1. Rename project via project explorer. 通过项目资源管理器重命名项目。
  2. Open project properties (right click) -> rename "Assembly name" and "Default namespace" 打开项目属性(右键单击)->重命名“程序集名称”和“默认名称空间”
  3. Open Assembly Info file -> rename neseccary properties in this file 打开装配体信息文件->重命名此文件中的秘书属性
  4. Remove renamed projects from solution 从解决方案中删除重命名的项目
  5. Rename projects directiories on file system 重命名文件系统上的项目目录
  6. Load renamed projects 加载重命名的项目

After performing these steps for some C# projects (for example I renamed 10 projects), Visual Studio 2010 hangs. 对某些C#项目(例如,我将10个项目重命名)执行了这些步骤之后,Visual Studio 2010将挂起。 Work with the solution becomes fully impossible. 解决方案的工作变得完全不可能。 It occurs on any machine when I try to open this solution. 当我尝试打开此解决方案时,它会在任何计算机上发生。

The goal is to rename all projects. 目标是重命名所有项目。 For example, every project's name pattern is : XXX.YYY.ZZZ and I want to rename them all according to a new pattern : YYY.ZZZ. 例如,每个项目的名称模式是:XXX.YYY.ZZZ,我想根据新模式将它们全部重命名:YYY.ZZZ。

With more than 100 projects in two different languages it is very normal for VS2010 to freeze.I have about only 45 projects , Changing a class name freezes VS for a noticeable amount of time. VS2010有两种不同语言的100多个项目,因此冻结是非常正常的。我只有45个项目,更改类名会使VS冻结相当长的时间。 Then even though tedious i switched to Find and Replace,Basic but doesn't freeze VS..There is no other go. 然后,即使我很乏味,我还是切换到了“查找和替换”,但基本并没有冻结VS。 You have to deal with it. 您必须处理它。 Btw VS also needs a Huge database for maintaining c++ references and parsing information. Btw VS还需要一个庞大的数据库来维护c ++引用和解析信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM