Visual Studio生成事件挂起 [英] Visual Studio Build Events Hang

查看:86
本文介绍了Visual Studio生成事件挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 7

Windows 7

带有Update 3的Visual Studio 2015

Visual Studio 2015 w/ Update 3

C#项目

前一天,我试图构建自己的项目,而我之前可能已经构建了数千次,但是这次它从未完成构建,只是挂在一个点,没有任何错误或任何迹象.看来我的任何构建事件都卡住了 一切都很简单,只需将几个dll从一种解决方案复制到另一种即可.如果我重新启动计算机,有时会很幸运并能完成其中的一项操作,但是下次尝试再次挂起计算机时.如果我等30分钟就可以完成,但是在过去的一年中,我已经建立了所有 我的解决方案在10到30秒内成功完成.但是现在它们都是不可能的.我在2013年,2015年和2017年RC上尝试过的所有VS安装都是相同的.

The other day I tried to build my project I've built probably thousands of times before and this time it never finished building it just hung at one point with no errors or any indication. It appears it's getting stuck at any of my build events which are all pretty simple just copy a couple dlls from one solution to another. If I restart my computer I can sometimes get lucky and get one to finish but the next time I try it hangs again. If I wait like 30min it may finish but for the past year I have built all my solutions successfully in 10 - 30 seconds. But now they all are impossible. This is the same across all my VS installations I've tried it on 2013, 2015 and the 2017 RC.

我在网上看到了一些建议,但没有一个对我有用或不适用.

I've seen some suggestions online but none worked or applied to me.

我可以手动运行脚本,没问题.

I can manually run the scripts no problem.

我尝试过的事情:

  • 重新安装VS
  • 卸载2017 RC
  • 更新VS
  • 将尝试进行系统还原,但所有安装将覆盖问题之前的安装.
  • 重新映射TFS中的所有代码.
  • 设置我的文件夹的权限.
  • 在管理员模式下运行VS.

对于我的一生,我想不出为实现这一目标而做了什么不同的事情,只是突然之间它们在我的机器上坏了.

For the life of me I can't think of what I did differently to make this happen, just all of the sudden they broke on my machine.

这是事件之一的示例.

This is an example of one of the events.

复制"C:\ AppName \ AppNameServer \ Dev \ Data.dll" " C:\ AppName \ AppNameClient \ Dev \ ReferencedAssemblies \"

copy "C:\AppName\AppNameServer\Dev\Data.dll" "C:\AppName\AppNameClient\Dev\ReferencedAssemblies\"

任何建议将不胜感激.

推荐答案

也许某些原因阻止了VS可以将其写入光盘.

maybe something prevents that VS can write to the disc.

您是否已经在计算机上安装了某些安全应用程序或同等的产品?

Do you have installed some security application or something equal installed on your computer? 

有什么能像防病毒应用程序一样阻止文件访问?

Something what is able to block file access like an Antivirus application?

此致

David


这篇关于Visual Studio生成事件挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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