【发布时间】:2016-05-05 14:22:05
【问题描述】:
在特定的 Windows 更新之后,MSBUild 一直在抛出这个:
The specified task executable cmd.exe could not be run. The process cannot access the file, because it is being used by another process
这个问题非常持久。我尝试增加“并行项目构建的最大数量”,但无济于事。我没有找到任何其他软件限制非管理员访问 MSBuild 提到的位置。
还有没有类似情况的人?
【问题讨论】:
-
使用
msbuild <myproject> /v:d从命令行执行构建并粘贴包含错误消息和相关上下文消息的更大的sn-p。 -
这里是:
(PostBuildEvent target) -> C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Microsoft.Common.targets(4264,5): error MSB6003: The specified task executable "cmd.exe" could not be run. The process cannot access the file 'C:\Users\ctuft\AppData\Local\Temp\tmp 8c89d6440ec743acba7e22d98d773e3b.exec.cmd' because it is being used by another process. [D:\mysolution\WebAPI\mysolution.csproj] -
我想在这里建立一个解决方案,而不是一个项目。
-
您是否正在运行任何防病毒软件?尝试禁用所有监控和抗病毒软件。
-
我们正在使用 Mcafee,并且我确实从 MACfee 控制台禁用了我所能做的一切,但我仍然得到同样的错误。 :(
标签: visual-studio-2012 msbuild