[英]Visual studio stopped performing custom build steps
Not sure how to address this problem, maybe someone has faced this before and can give a hint where to look.不知道如何解决这个问题,也许有人以前遇到过这个问题,可以给一个提示在哪里看。
The problem is that my visual studio project has proto file with a custom build tep assigned to it:问题是我的 Visual Studio 项目有一个带有自定义构建 tep 分配给它的 proto 文件:
..\\*some path to a protoc.exe*\\protoc --proto_path=%(RootDir)%(Directory) --cpp_out=%(RootDir)%(Directory) %(FullPath)
Everything worked fine, until some day it stopped and I have no idea why.一切正常,直到有一天它停止了,我不知道为什么。 Maybe I have screwed up some environmental variable or some setting or something else.
也许我搞砸了一些环境变量或一些设置或其他东西。 The problem also extends itself to other projects that had some custom build steps generated when I used CmakeGui to generate a visual studio project.
当我使用 CmakeGui 生成 Visual Studio 项目时,该问题还扩展到其他项目,这些项目生成了一些自定义构建步骤。 Such steps have a description set "Compiling %(Filename).proto..." which does not appear in the output.
这些步骤有一个描述集“编译 %(Filename).proto...”,它没有出现在输出中。 Almost as if it was completely ignored, yet compiler can't build the project because there are references to generated files inside the project.
几乎就好像它被完全忽略了一样,但编译器无法构建项目,因为项目中存在对生成文件的引用。
Any advice on how to solve this problem would be appreciated.任何有关如何解决此问题的建议将不胜感激。
The issue resolved itself after I did a repair using visual installer.在我使用可视化安装程序进行修复后,问题自行解决。 Wtf was the problem is still a mistery though.
Wtf 是问题仍然是一个谜。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.