Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Powershell doesn't have the correct path info after the vsvars32.bat command

With command prompt, I run vsvars32 to run all the visual studio command line utilities (compiler, linker ...).

enter image description here

However, when I run the same thing with PowerShell, I can't run the utilities. What might be wrong?

enter image description here

like image 617
prosseek Avatar asked May 26 '11 15:05

prosseek


2 Answers

The answer is in here: Use PowerShell for Visual Studio Command Prompt

like image 150
Roman Kuzmin Avatar answered Nov 17 '22 01:11

Roman Kuzmin


Running a batch file causes it to spawn its own process, which doesn't affect the powershell environment. For a workaround, see: How to call batch script from Powershell?

like image 23
jlew Avatar answered Nov 17 '22 00:11

jlew