Visual Studio 2017 中的 vsvars32.bat [英] vsvars32.bat in Visual Studio 2017

查看:185
本文介绍了Visual Studio 2017 中的 vsvars32.bat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于 Visual Studio 安装程序是 Visual Studio 2017 版本的新安装程序,我无法找到 Visual C++ 组件,解释 这里.

As the Visual Studio installer is new from Visual Studio 2017 version, I cannot located the Visual C++ component, explained here.

如何在 VS2017 中获取 vsvars32.bat?

How do I proceed to get the vsvars32.bat in VS2017?

推荐答案

VS2017 的安装路径位置选择受到非常严重的影响.他们所做的最愚蠢的事情是将版本名称(专业版、企业版、可能是社区版)作为路径的一部分.这使得从一台机器到另一台机器可靠地找到刀具变得非常困难.

VS2017 suffers from very seriously brain-damaged install path location choices. Most damning dumb thing they did is to make the edition name (Professional, Enterprise, probably Community) part of the path. This makes it quite difficult to find tools back reliably from one machine to another.

有一个环境变量我认为可以解决这个问题,VSAPPIDDIR 变量存储了安装 IDE 的文件夹(devenv.exe)的路径.因此,如果您想从构建事件运行 vcvars32.bat,那么您可以使用

There is one environment variable that I think can solve the problem, the VSAPPIDDIR variable stores the path to the folder where the IDE is installed (devenv.exe). So if you want to run vcvars32.bat from a build event then you'd use

   call "%vsappiddir%..\..\VC\Auxiliary\Build\vcvars32.bat" x86

注意是vc,不是vs,vsvars32.bat已经不存在了.您可能会喜欢开发人员命令提示符:

Note that it is vc, not vs, vsvars32.bat no longer exists. You could possibly favor the "Developer Command Prompt:

   call "%vsappiddir%..\tools\vsdevcmd.bat"

但是从您的链接来看,您实际上想要运行 editbin.exe 实用程序:

But judging from your link, you actually want to run the editbin.exe utility:

   "%vsappiddir%..\..\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\editbin.exe" args...

14.10.25017 版本号也没有任何乐趣,没有真正了解从一次更新到下一次更新将如何变化.可能会.

The 14.10.25017 version number is no joy whatsoever either, no real insight in how that is going to change from one update to the next. It probably will.

这篇关于Visual Studio 2017 中的 vsvars32.bat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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