构建期间的Freezeup [英] Freezeups during build

查看:99
本文介绍了构建期间的Freezeup的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将我的工作站升级为联想核心i7机器。  自设置计算机以来,Visual Studio在构建/重建过程中经常锁定。  我们的解决方案包含23个项目,它似乎随机冻结在各种
的项目中,而不是每次都是同一个项目。  所有内容都已正确更新和配置,或至少与平常相同,但编译一遍又一遍地失败。  我必须取消构建,然后重新构建或清理并重建,如果它最终编译,则为
我会产生副作用,例如某些项目在intellisense上失败,表单设计者无法打开。  成功重建后,我可以再次运行重建,但它将失败。  我已经尝试过VS 2015和2017
,昨天尝试从头开始重新加载机器,仅在重新加载VS 2015后发生同样的效果,所以我知道这不是VS 2017兼容性问题。  我真的很喜欢修复这个或某种方式来找到有关freezups的更多信息,
因为此时很难处理。

解决方案

MarkN_SP,


欢迎来到MSDN论坛!


>>> 我们的解决方案由23个项目组成,它在各种项目中似乎随机冻结,而不是每次都冻结。


是否有任何p rompt信息或错误日志?你可以分享截图给我们。


要解决此问题,您可以按照以下方法进行:


1。以管理员身份运行Visual Studio。


2。逐个构建项目,而不是构建解决方案,检查是否为任何项目冻结它。


3。 S 通过运行:devenv.exe / SafeMode来安装visualmode中的visual studio。它仅加载默认设置和服务。如果它工作,那么罪魁祸首就像扩展或第三方包,例如
,ReSharper。


4。检查MSBuild是否在诊断开关打开的情况下运行。 在Visual Studio中,转到工具/选项/项目&解决方案/构建并运行,然后检查MSBuild项目构建输出详细程度值。如果未设置为Minimal,请尝试将
设置为minimal,并查看您的构建是否能够完成。



希望这可以帮助你。 <强>


I recently upgraded my workstation to a lenovo core i7 machine.  Since setting up the machine, Visual Studio locks up frequently during build/rebuild processes.  Our solution consists of 23 projects and it freezes seemingly randomly on a variety of projects, not just the same one each time.  Everything is updated and configured properly, or at least the same as usual, but the compile fails consistently over and over.  I have to cancel the build, then rebuild again or clean and rebuild, and if it finally does compile I get side effects, such as some projects failing on intellisense and form designers that won't open.  Immediately after a successful rebuild, I can run rebuild again and it will fail.  I've tried with VS 2015 and 2017 and yesterday tried reloading the machine from scratch with the same effect occurring after reloading VS 2015 only, so I know it's not a VS 2017 compatibility issue.  I'd really love a fix for this or some way to find out more info about the freezups, as this is difficult to work with at this point.

解决方案

Hi MarkN_SP,

Welcome to MSDN forum!

>>>Our solution consists of 23 projects and it freezes seemingly randomly on a variety of projects, not just the same one each time.

Is there any prompt information or error log? you could share a screenshot to us.

To troubleshoot this you could follow below methods:

1. Running Visual Studio as Administrator.

2. Build the project one by one, not build the solution, check if it is frozen for any project.

3. Start visual studio in safemode, by running: devenv.exe /SafeMode. It loads only default settings and services. If it works then the culprit is something like an extension or a third party package, for example, ReSharper.

4. Check if MSBuild is running with the diagnostic switch turned on.  In Visual Studio, go to Tools / Options / Projects & Solutions / Build And Run, then check the MSBuild project build output verbosity value. If its not set to Minimal, try setting to minimal and see if your builds are able to complete.

Hope this can help you.


这篇关于构建期间的Freezeup的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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