【发布时间】:2021-04-22 16:53:41
【问题描述】:
如题,执行后使用Powershell
PS C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build> .\vcvarsall.bat amd64
那么像 cl、nmake 或 msbuild 这样的程序应该在路径上可用,但它们不是
PS C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build> cl cl :术语“cl”未被识别为 cmdlet、函数、脚本文件或可运行程序的名称。检查 名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试。 在 line:1 char:1
- cl
- ~~
- CategoryInfo : ObjectNotFound: (cl:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
规格:
- 具有“使用 C++ 进行桌面开发”工作负载的 VS 2019 社区版:
- MSVC v142 - VS 2019 C++ x64/x86 构建工具 (v14.28)
- Windows 10 SDK (10.0.18362.0)
- 即时调试器
- C++ 分析工具
- 适用于 Windows 的 C++ CMake 工具
- 用于最新 v142 构建工具(x86 和 x64)的 C++ ATL
- Boost.Test 的测试适配器
- 用于 Google 测试的测试适配器
- 实时分享
- C++ AddressSanitizer(实验性)
- Win10 Pro N x64, 20H2, 19042.746
我错过了什么?
【问题讨论】:
标签: visual-studio powershell msbuild nmake cl