简体   繁体   English

构建后 Visual Studio 2022“任务被取消”

[英]Visual Studio 2022 "A task was cancelled" after build

I'm using Visual Studio Community 2022. Now I have a similar problem with Visual studio 2013 "A task was cancelled" .我正在使用 Visual Studio Community 2022。现在我遇到了与Visual Studio 2013 “A task was cancelled”类似的问题。 A few moments ago, everything went alright.几分钟前,一切都还好。 However I suddenly found that when I try to build my cpp project, VS only output但是我突然发现,当我尝试构建我的 cpp 项目时,VS 只有 output

1>----— Build started: Project: MyConsoleApp, Configuration: Release x64 —----

After about 5 minutes, it becomes大约5分钟后,它变成

1>----— Build started: Project: MyConsoleApp, Configuration: Release x64 —----
1>A task was canceled.
1>A task was canceled.
========= Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

All my cpp projects have the same problem now.我所有的 cpp 项目现在都有同样的问题。 My time zone is correct.我的时区是正确的。 I have tried to reopen VS, restart my computer and reinstall Visual Studio, but this problem still exists.试过重启VS,重启电脑,重装Visual Studio,问题依旧。

I have the same problem as you, since February 28th, VS2022 could not build any project, until today, I uninstalled the anti-virus software (360 Security Guard) installed on my computer, it returned to normal work, I think this is due to the anti-virus software update caused by the incompatible VS2022, You can try uninstalling the anti-virus software installed on your computer, which may solve the problem我和你一样的问题,从2月28日开始,VS2022无法构建任何项目,直到今天,我卸载了我电脑上安装的杀毒软件(360安全卫士),它恢复正常工作,我认为这是由于VS2022不兼容导致的杀毒软件更新,您可以尝试卸载电脑上安装的杀毒软件,可能会解决问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM