Cannot determine the location of the VS Common Tools folder

最近在工作中,需要使用“ VS2015 开发人员命令提示 ”进行编译Boost,打开该工具时,界面会提示“ Cannot determine the location of the VS Common Tools folder ”。

在这里插入图片描述

通过跟踪定位批处理文件,问题原因应该是找不到路径,因为这个路径写入注册表的,那为什么会读不到呢?博主找了很多资料,发现一个很简单的问题,因为读不到系统根目录路径,才无法找到注册表位置。

那很简单的一个办法,在环境变量中加入系统路径:
在Path后追加以下路径即可。

C:\Windows\System32\

但是问题来了,在博主的机器上解决了问题,在其他人的pc上又出现了同样的问题。而很搞笑的是,前面记录的这种方法并没有解决。因此暂时留给我问题在这里,后续找到解决方案再补充。
在这里插入图片描述
如果哪位大佬找到解决方案,还请不吝赐教,谢谢。

以下是参考的文章,可能对你有帮助。

VS2017 does not set registry entries for vcvars32.bat & vcvars64.bat

Cannot determine the location of the VS Common Tools folder

【问题解决】vs2013 command prompt错误:cannot determine the location of the vs common tools folder

vs2012 无法使用命令行提示符?ERROR: Cannot determine the location of the VS Common Tools folder.

  • 4
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值