Visual Studio 2012 无法加载某些项目然后挂起(正忙) [英] Visual Studio 2012 fails to load some projects and then hangs (is busy)

查看:31
本文介绍了Visual Studio 2012 无法加载某些项目然后挂起(正忙)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由 4 个项目组成的解决方案,我很高兴在运行 VS 2012 的 Windows 7 机器上编辑它,将我的代码存储在云中的 TFS+Git 中.

I have a solution consisting of 4 projects and am happily editing this at work on a Windows 7 machine running VS 2012, storing my code in TFS+Git in the cloud.

但是,在家里拉下解决方案后,我无法在家用 PC 上获得 Visual Studio 2012 来打开项目文件.

However, at home after pulling down the solution I cannot get Visual Studio 2012 on my home PC to open the project files.

我在 4 个项目中的 3 个中收到解决方案正在加载..."消息和(加载失败).

I get the "solution loading..." message and (load failed) on 3 out of the 4 projects.

现在不同之处在于我运行 Windows 7 64 位,在家运行 Windows 8.我在工作时运行 64 位版本的 VS2012,在家运行 32 位.

Now the differences are at work I run Windows 7 64-bit, at home Windows 8. At work I run the 64-bit version of VS2012, at home the 32-bit.

也许这足以把事情搞砸了,也许我在我的 64 位实例上引用了我的家用 PC 没有的东西,但除此之外,这些机器用 VS 2012 的 Update 3 进行了修补.

Maybe that's enough to mess things up, maybe I've referenced something on my 64-bit instance that my home PC does not have, but other than that the machines are patched with Update 3 of VS 2012.

我该怎么做才能发现 VS 正在做什么?我可以打开任何跟踪选项吗?我已经删除了所有内容,将解决方案拉下来无济于事.

What can I do to discover what VS is doing? Any trace options I can switch on? I've deleted everything, pulled the solution down to no avail.

推荐答案

在没有包的项目上似乎挂起(项目正在初始化...").卸载 NuGet 似乎解决了最初的问题,然后我可以打开解决方案.构建 -> 然后再次安装 NuGet,确保关闭自动下载丢失的包.然后VS抱怨缺少Microsoft.Build.1.7 dll,因此从控制台管理器手动添加所需的包.最终让它重新工作.

Seems to hang ("project initializing...") on projects that had no packages. Uninstalling NuGet appears to resolve the initial problem and I can then open the solution. Build -> then install NuGet back again ensuring automatic download of missing packages is switched off. VS then moaned about missing Microsoft.Build.1.7 dll, so manually added the required package from Console Manager. Eventually got it back working again.

希望能帮助其他有类似问题的人.

Hope that helps anyone else with a similar issue.

这篇关于Visual Studio 2012 无法加载某些项目然后挂起(正忙)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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