简体   繁体   English

Visual Studio 停止执行自定义构建步骤

[英]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.

相关问题 在Visual Studio 2008中设置自定义生成步骤的工作目录 - Setting working directory for custom build steps in Visual Studio 2008 为什么我的自定义构建步骤没有在Visual Studio中运行? - Why are my Custom Build steps not running in Visual Studio? Visual Studio 2015-查找当前使用的工作空间的路径(C#/自定义生成步骤) - Visual Studio 2015 - Finding out path to currently used workspace (C# / custom build steps) Visual Studio删除一个shared.pch文件,关于自定义构建步骤的问题 - Visual Studio deletes a shared .pch file, and questions about custom build steps 有没有办法有条件地运行Visual Studio Post Build Steps - Is there a way to conditionally run Visual Studio Post Build Steps 在 Visual Studio 2010 的预构建步骤中吞下错误 - Swallowing errors in pre-build steps in Visual Studio 2010 在 Windows 和 Mac 上的 Visual Studio 之间共享预构建步骤 WITH ARGUMENTS - Sharing pre build steps WITH ARGUMENTS between Visual Studio on Windows and Mac CMake:如何为Visual Studio的不同构建配置指定不同的步骤? - CMake: how to specify different steps for different build configurations for Visual Studio? Visual Studio自定义构建步骤规则? - Visual studio custom build step rule? 在 Visual Studio 中使用自定义构建配置 - Using custom build configuration in visual studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM