Visual Studio 2017挂起时“准备解决方案” [英] Visual Studio 2017 Hangs While "Preparing Solution"

查看:118
本文介绍了Visual Studio 2017挂起时“准备解决方案”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

打开一个大型解决方案(10个混合项目,C ++,C#,ASP.Net,VS安装程序组合)VS挂起'准备解决方案'。发现这个:如果我删除了.vs / SolutionName / V15 / *(隐藏的.vs文件夹和名为same的子文件夹)的内容,然后
启动VS它会打开。关闭并重新打开并再次挂起,直到我再次删除上述文件夹的内容。

Opening a large solution (10 mixed projects, C++, C#, ASP.Net, VS Installer mix) VS hangs on 'Preparing Solution'. Found this: If I delete the contents of the .vs/SolutionName/V15/* (hidden .vs folder and subfolder named same as solution) and then start VS it opens. Close and reopen and it hangs again until I again delete contents of above folder.

这是我在VS / 2017发布后24小时内的第3期!帮助!

This is my 3rd issue within 24 hours of the release of VS/2017! Help!

编辑:发现这个。我只需要在上面命名的文件夹中删除名为Solution.VC。*的文件。打开解决方案时,名为Browse.VC.db和.suo的文件不会导致挂起问题。这个发现很有用,因为打开项目不会每次都重建
浏览数据库文件。

Found this. I only need to delete the files named Solution.VC.* in the above named folder. The files named Browse.VC.db and .suo do not cause hanging issue when opening the solution. This discover is helpful as opening the project doesn't rebuild the Browse db file every time now.

Randy

 

推荐答案

您好  Randy,

项目可能正在尝试打开一个不再存在的文件,这就是导致挂起的原因。

Probably the project is attempting to open a file that no longer exists and that’s what causes the hang.

有一种方法可以帮助避免每次删除文件,它是删除Solution.VC。*,
打开VS 在解决方案中打开文件
build
关闭解决方案。

There is a way to help to avoid deleting the file every time, it is to delete the Solution.VC.*, open VS, open a file within the solution, build and close the solution.

步骤如下:


  1. 删除你身边的Solution.VC。*文件
  2. 打开Visual Studio
  3. 打开项目
  4. 打开文件(随机.cs或.cpp文件)
  5. 构建并保存您的解决方案
  6. 关闭Visual Studio
  1. Delete the Solution.VC.* file in your side
  2. Open Visual Studio
  3. Open your project
  4. Open a file (a random .cs or .cpp file)
  5. Build and save your solution
  6. Close Visual Studio

有些人尝试在上面做,并且它有效。

Some people try doing above, and it works.

另一个建议是:

构建一个空的解决方案,添加现有项目。  

Build an empty solution, add existing project.  

您可以创建一个新的解决方案,并通过
添加
添加您已有的项目 - > ; 现有项目  这也可以帮助您避免删除文件。

You could create a new solution, and add those projects you already had, by Add -> Existing Project.  This could also help you avoid deleting the file.

希望有所帮助。

祝你好运,

Fletch


这篇关于Visual Studio 2017挂起时“准备解决方案”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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