如何安装 Visual C++ 构建工具? [英] How to install Visual C++ Build tools?

查看:43
本文介绍了如何安装 Visual C++ 构建工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要安装 Visual C++ 构建工具.下载安装程序后,我尝试安装它,但它告诉我需要卸载 VS 2015!

I need to install Visual C++ Build Tools. When I've download installer, I've tried to install it, however it's telling me I need to uninstall VS 2015!

我该如何解决?为什么 Visual C++ Build 工具告诉我它需要删除当前的 VS 2015 安装?

How can I solve it? Why is Visual C++ Build tools telling me it needs to remove current VS 2015 installation?

推荐答案

您可以查看 宣布 Visual C++ Build Tools 2015 正式发布 并且从这篇博客我们可以知道 Build Tools 是相同的 C++ 工具您在 Visual Studio 2015 中获得的,但它们带有可编写脚本的独立安装程序,该安装程序仅提供构建 C++ 项目所需的工具.构建工具为您提供了一种在构建机器上安装所需工具的方法,而无需安装您不需要的 IDE.

You can check Announcing the official release of the Visual C++ Build Tools 2015 and from this blog, we can know that the Build Tools are the same C++ tools that you get with Visual Studio 2015 but they come in a scriptable standalone installer that only lays down the tools you need to build C++ projects. The Build Tools give you a way to install the tools you need on your build machines without the IDE you don’t need.

由于这些组件与 Visual Studio 2015 Update 2 安装程序安装的组件相同,因此您无法在已安装 Visual Studio 2015 的计算机上安装 Visual C++ Build Tools.因此,当您尝试使用独立安装程序安装 Visual C++ 构建工具时,它会要求您卸载现有的 VS 2015.由于您已经拥有 VS 2015,您可以进入控制面板——程序和功能,然后右键单击 VS 2015 项并更改-修改,然后检查与 Visual C++ 构建工具相关的那些组件的选项,例如 Visual C++,Windows SDK……然后安装它们.安装成功后就可以构建C++项目了.

Because these components are the same as the ones installed by the Visual Studio 2015 Update 2 setup, you cannot install the Visual C++ Build Tools on a machine that already has Visual Studio 2015 installed. Therefore, it asks you to uninstall your existing VS 2015 when you tried to install the Visual C++ build tools using the standalone installer. Since you already have the VS 2015, you can go to Control Panel—Programs and Features and right click the VS 2015 item and Change-Modify, then check the option of those components that relates to the Visual C++ Build Tools, like Visual C++, Windows SDK… then install them. After the installation is successful, you can build the C++ projects.

这篇关于如何安装 Visual C++ 构建工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆