• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

import vcvarsall.bat?

W

wscholine

#1
I'd like to set up a command-line build environment with ps. Currently
I have to do a 'call "%ProgramFiles%\Microsoft Visual Studio 8\VC
\vcvarsall.bat"' as part of that. Is there a way to do that and cause
the set commands there to affect env: in ps?
 

My Computer

K

Keith Hill [MVP]

#2
"wscholine" <wscholine@gmail.com> wrote in message
news:1174592482.709848.263260@o5g2000hsb.googlegroups.com...
> I'd like to set up a command-line build environment with ps. Currently
> I have to do a 'call "%ProgramFiles%\Microsoft Visual Studio 8\VC
> \vcvarsall.bat"' as part of that. Is there a way to do that and cause
> the set commands there to affect env: in ps?
>


Take a look at this blog post:

http://www.leeholmes.com/blog/NothingSolvesEverythingPowerShellAndOtherTechnologies.aspx

Also the PSCX snapin will automatically register the appropriate VS 2005 env
vars if you have VS 2005 installed:

http://www.codeplex.com/powershellcx

--
Keith
 

My Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)