哪个 Visual Studio 组件包含 MSVC Hostx 文件? [英] Which Visual Studio component contain the MSVC Hostx files?

本文介绍了哪个 Visual Studio 组件包含 MSVC Hostx 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 .NET 解决方案在 PostBuild 事件中包含一个 editbin 命令.

My .NET solution contains an editbin command in PostBuild events.

我们尝试创建一个 Docker 容器来编译我们的解决方案.为此,我们安装了 VS17安装程序.

We try to create a Docker Container for compiling our solution. To do that, we installed the VS17 with the installer.

我们找不到哪个 component 我们应该选择获取editbin.

We can't find which component we should select to get the editbin.

在我的机器中,editbin 存在于 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Host{x86/x64}\{x86/x64/arm64} 在 6 个地方 - 占位符的所有组合.

In my machine, the editbin exist in C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.16.27023\bin\Host{x86/x64}\{x86/x64/arm64} in 6 places- all the compinations of the placeholders.

推荐答案

editbin 是 C++ 构建工具链的一部分,与 cl(编译器)、link(链接器)、rc(资源编译器)和其他用于创建/修改二进制文件的工具.这就是您在...\VC\Tools..."子目录中找到它的原因.

editbin is part of the C++ build toolchain, along with cl (the compiler), link (the linker), rc (the resource compiler), and other such tools for creating/modifying binaries. That's why you find it in "...\VC\Tools..." subdirectory.

因此,这将在 "Visual Studio Build Tools 2017" 组件:

As such, this would be in the "Visual Studio Build Tools 2017" component:

Visual Studio 构建工具允许您构建基于 MSBuild 的本机和托管应用程序,而无需 Visual Studio IDE.可以选择安装 Visual C++ 编译器和库、MFC、ATL 和 C++/CLI 支持.

The Visual Studio Build Tools allows you to build native and managed MSBuild-based applications without requiring the Visual Studio IDE. There are options to install the Visual C++ compilers and libraries, MFC, ATL, and C++/CLI support.

请注意,您无需安装 Visual Studio 即可获得此功能.您也可以安装Windows SDK.

Note that you do not need to install Visual Studio in order to get this. You could just as well install the Windows SDK.

这篇关于哪个 Visual Studio 组件包含 MSVC Hostx 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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