【问题标题】:Microsoft.CppCommon.targets: The specified task executable "cmd.exe" could not be run. Because the file contains a virusMicrosoft.CppCommon.targets:无法运行指定的任务可执行文件“cmd.exe”。因为文件包含病毒
【发布时间】:2022-02-11 21:38:59
【问题描述】:

我的项目突然停止构建。我什至不知道我应该去哪里解决这个错误? 我做了什么我扫描了我的电脑上的病毒,在 Windows Defender 中添加了 cmd.exe 的异常。

C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): 错误 MSB6003:指定的任务可执行文件“cmd.exe”不能 跑。 System.ComponentModel.Win32Exception (0x80004005): 操作完成 未成功完成,因为文件包含病毒或 隐匿垃圾软件

【问题讨论】:

标签: c++ visual-studio


【解决方案1】:

在事件日志中,我发现了来自 RAV 防病毒软件的可疑消息。问题出在 RAV Antivirus 中。不知何故(?)它安装在我的机器上并阻止 cmd.exe 运行。

【讨论】:

    猜你喜欢
    • 2013-01-21
    • 1970-01-01
    • 2015-12-04
    • 1970-01-01
    • 2020-10-18
    • 2011-03-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多