【问题标题】:Visual C++ component "VCBuild.exe"Visual C++ 组件“VCBuild.exe”
【发布时间】:2017-09-27 22:22:32
【问题描述】:

我安装了 Visual Studio 2015 并且能够在 IDE 中编译和运行 c++ 测试应用程序。

我的 npm 安装程序抛出错误

MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe".

当我安装 Visual Studio 2013 时,我没有收到此错误。此 npm 项目使用的库基于 Visual Studio 2015。

在 Visual Studio 2015 安装后,我是否需要做一些在 Visual Studio 2013 中不需要做的额外事情?

【问题讨论】:

  • 只需在 Google 查询框中输入“vcbuild.exe”就足以在 SO 中找到两个描述此问题及其解决方案的现有问题。
  • 没这么简单。 Visual Studio 2015 更改了编译器名称,我无法切换到 2013 或更早版本。

标签: c++ visual-studio visual-studio-2015 npm


【解决方案1】:

Microsoft 提供了一个 npm 包,无需安装 Visual Studio,即可解决所有这些原生构建问题。

“windows-build-tools”:“^1.3.2”

【讨论】:

    猜你喜欢
    • 2013-09-07
    • 2015-04-21
    • 2014-03-06
    • 2014-05-25
    • 2015-01-17
    • 1970-01-01
    • 2017-09-04
    • 1970-01-01
    • 2020-09-05
    相关资源
    最近更新 更多