msbuild : The term 'msbuild' is not recognized as the name of a cmdlet,
function, script file, or operable program.
就我的谷歌搜索而言,Visual Code 应该与 MSbuild 一起提供。我已经安装了 C/C++ 和 msbuild Tools 扩展,但无济于事。我能做些什么?
编辑:我正在使用 Visual Studio Code 1.19.2
原文由 Daniel Paczuski Bak 发布,翻译遵循 CC BY-SA 4.0 许可协议
我建议你重新考虑你的命令行方法。
短期计划
细节
从 Visual Studio 下载页面( 直接链接)下载 Visual Studio 2017 的构建工具
此处记录的命令行参数: 使用命令行参数安装 Visual Studio 2017
此处列出了所有工作负载和组件: Visual Studio Build Tools 2017 组件目录
您可以使用 PowerShell 模块
VSSetup
。从这里下载或安装: Github:Microsoft/Visual Studio Setup PowerShell Module使用
build
目标运行 MSBuild(您可以添加额外的必需参数)