![vsvars32.bat](https://i-blog.csdnimg.cn/blog_migrate/01877b7c9b41b8380b3e09c708b671ab.png)
vsvars32.bat
I may be completely off on this, but when I bring up a Command Prompt I always like to use the "Visual Studio Command Prompt" so my PATH is all setup. Ya ya, I know I can make it default, blah blah. Anyway, the first thing I do is usually dig into Start Menu|All Programs|Microsoft Visual Studio xxxx|Tools and get the Visual Studio Command Prompt and pull it over to the top of the Start Menu.
我可能对此完全不满意,但是当我出现命令提示符时,我总是喜欢使用“ Visual Studio命令提示符”,因此我的PATH已全部设置好。 是的,我知道我可以将其设为默认值,等等。 无论如何,我要做的第一件事通常是进入“开始”菜单|“所有程序” | Microsoft Visual Studio xxxx |“工具”,然后获取Visual Studio命令提示符,并将其拉到“开始”菜单的顶部。
When messing with Beta 2 while updating chapters for our upcoming ASP.NET 2.0 book, I noticed that my Visual Studio 2005 Command Prompt was complaining about a missing file when I ran it. It was looking for something called vsvarsall.bat or something. Anyway, it doesn't exist. That seems odd that Beta 2 would ship with a broken shortcut...?
在为即将发布的ASP.NET 2.0本书更新章节时使用Beta 2时,我注意到Visual Studio 2005 Command Prompt在运行时抱怨文件丢失。 它正在寻找一个名为vsvarsall.bat的东西。 无论如何,它不存在。 Beta 2附带一个损坏的快捷方式似乎很奇怪...?
At any rate, the good old vsvars32.bat is still in there, deep in the bowels, so I set my Command Prompt to point to:
无论如何,旧的vsvars32.bat仍然存在于肠道深处,因此我将命令提示符设置为:
%comspec% /k ""C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\vsvars32.bat""
%comspec%/ k“” C:\ Program Files \ Microsoft Visual Studio 8 \ Common7 \ Tools \ vsvars32.bat“”
and I was back in business.
然后我又重新营业。
I'm still left wondering if it was me, something I did, some schmutz in the machine, or a legit oversight. We shall see.
我仍然想知道这是我自己,我做过的事情,机器上的一些杂乱无章的东西还是合法的疏忽。 我们将会看到。
UPDATE: Vote on the bug here if you like.
更新:如果您愿意,请在此处对错误进行投票。
翻译自: https://www.hanselman.com/blog/vsvars32bat-missing-from-net-beta-2
vsvars32.bat