Scott Hanselman

VSVARS32.BAT missing from .NET Beta 2?

April 22, 2005 Comment on this post [6] Posted in ASP.NET | Bugs | Tools
Sponsored By

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.

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...?

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:

%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.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service
April 22, 2005 11:45
It happened to me after I uninstalled Feb CTP and reinstalled Beta 2. Thanks for the fix.
April 22, 2005 17:50
I noticed this as well and filed a bug against it.
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=c877af66-b7b8-4acc-9de8-7855dbf9e7fc

The workaround states that you should install (part of) Visual C++, but I dug around and found vsvars32 as well :)
April 22, 2005 18:02
Interesting. Mine appears to work fine. I also upgraded from the Feb. CTP. Weird things do happen to you!
April 22, 2005 19:37
Mark, that's likely because you installed C++. Turns out the bug is that the Batch File is some how connected to the C++ checkbox in the installer.
April 22, 2005 21:50
Rightio, that must be it. I don't develop much with it anymore, but would feel naked without it installed.
April 22, 2005 23:08
I don't know, I also installed C++ and still had issues with the PATHing until I changed it to what you posted. Oh well, it works now and that's a good thing.

Comments are closed.

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.