哪个 Visual Studio 组件包含 MSVC Hostx 文件?

Which Visual Studio component contain the MSVC Hostx files?

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

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

我们找不到 component 我们应该 select 来获得 editbin

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

editbin 是 C++ 构建工具链的一部分,还有 cl(编译器)、link(链接器)、rc(资源编译器) ,以及 creating/modifying 二进制文件的其他此类工具。这就是为什么您在“...\VC\Tools...”子目录中找到它的原因。

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

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 即可获得此功能。你也可以安装 the Windows SDK.