Csc.exe在构建代码时挂起 [英] Csc.exe hanging while building code

查看:112
本文介绍了Csc.exe在构建代码时挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS 2013中开发了一个解决方案,其中包含大约20个奇怪的项目,这些项目最初用于构建正常但现在过去几天我们正面临着构建randonly挂起的问题。



我在任务管理器中查找并注意到进程CSC.EXE正在运行但基本上没有做任何事情处于挂起状态。如果我杀了这个过程,其他项目的其余项目将继续。



我尝试过:



1.构建依赖于不同的项目,因此解决方案中的一个特定项目没有问题。



2.我试过同样的事情通过命令行参数og MSBUILD.EXE,它也表现出相同的行为,其中构建在一些随机项目上被绞死,一旦我从任务管理器中杀死了CSC.EXE,其余的构建继续。



3.即使我在管理模式下打开VS,也会出现此问题。

我对系统拥有完整的权利,我是管理员。



4.如果我按照相同的构建顺序单独构建项目,那么只有当我构建完整的解决方案时才会出现这个问题。



欢迎任何建议/指针。

I have a solution developed in VS 2013 containing some 20 odd projects which used to build fine initially but now for past couple of days we are facing an issue where the build randonly hangs.

I looked up in Task manager and noticed the process CSC.EXE is running but not doing anything basically it is in hanged state. If I kill the process the rest of the Build for the other projects continous.

What I have tried:

1. The Build hangs on different projects, So not problem with one particular project in the solution.

2. I tried the same thing through Command line Argument og MSBUILD.EXE, it also exhibited the same behaviour where the build got hanged on some random project and once I killed CSC.EXE from task manager the rest of the build continued.

3. This problem is occuring even when I open VS in Admin Mode.
I have complete rights on the system, I am the admin.

4. If I build the projects individually in the same build order they get build, only when I build the complete solution this problem occurs.

Any suggestions/pointers are welcome.

推荐答案

我要做的第一件事就是检查所有正在运行的进程和clos可疑的。

然后查看构建订单。

然后检查是否与x86 / x64 / AnyCpu没有冲突。

重建所有。

如果失败则重新安装Visual Studio。
First thing I would do is check all running processes and close suspicious ones.
Then check the Build order.
Then check if there are no conflicts with x86 / x64 / AnyCpu.
Rebuild all.
If that fails then reinstall Visual Studio.


这篇关于Csc.exe在构建代码时挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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