Visual Studio 2013 在构建时出现问题,显示错误信息如下:
c:>devenv /build debug /project (project name) /projectconfig "debug|x64" (solution Name).sln
1>This operation should only take place on the UI thread.
最佳答案
我刚刚在使用 Visual Studio 2015 编译 C++ 代码时遇到了这个问题(错误:此操作应该只发生在 UI 线程上)。最后追踪到编译失败的项目的 .vcxproj.filters 文件。该文件已从另一个代码流合并而来,并且在一处缺少结束的“ClCompile”XML 标记。显然这会导致错误,尽管在 IDE 中编译工作正常。
关于c++ - 从命令行构建 x64 C++ 项目说 : This operation should only take place on the UI thread,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29384333/