visual-studio - Visual Studio 错误 MSB3491:该进程无法访问该文件,因为它被另一个进程使用,在下一次构建后消失
问题描述
我在使用 Visual Studio 2019 时遇到问题。构建解决方案时出现错误:
Error: MSB3491 Could not write lines to file
The process cannot access the file '..bin\objects\core\Release\x64\core.tlog\core.write.1u.tlog'
because it is being used by another process. FILE: ..\QtMsBuild\qt_globals.targets line: 407
这导致我到第 407 行:
<WriteLinesToFile Condition="'@(clean_log)' != ''"
File="$(TLogLocation)$(ProjectName).write.1u.tlog"
Lines="^%(clean_log.Source);@(clean_log->'%(Fullpath)')"
Encoding="Unicode"/>
再次运行构建后,此错误消失,这是奇怪的部分。我在这里发现了一些类似的问题 MSB3491:https ://developercommunity.visualstudio.com/content/problem/890376/custom-build-step-leads-to-error-msb3491-could-not.html 。但是这个解决方案对我不起作用。
解决方案
这是 QT 中的一个错误,他们已经发布了修复但我还没有尝试过。这是 Qt 错误跟踪报告:https ://codereview.qt-project.org/c/qt-labs/vstools/+/332804 。
推荐阅读
- vue.js - 如何将不同的道具集传递给 vue 孩子
- elixir - 以混合格式括起来
- youtube-dl - 如何安装 youtube-dl ubuntu 18.04
- url - URL 编码 \x 个字符
- privacy - Facebook 应用隐私政策 URL - 如果我不是公司,我应该怎么做?而且我不使用来自用户 netiher 的任何数据?
- go - 如何同时获得 AffectedRows 和 Row?
- javascript - 如何确保 Magento 2 中的 RequireJS 在加载其他脚本之前加载 jQuery?我发现嵌套需要解决这个问题
- python - 为什么打印 itertools.takewhile() 返回的对象的内容会破坏以后使用它的代码?
- ms-access-2010 - 使用 Java 从 MS Access 向文件系统写入/读取 OLE 对象
- python - 如何在通过 selenium 自动化时使用 beautifulsoup 打印 href 属性?