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, linke开发者_C百科r ...).
However, when I run the same thing with PowerShell, I can't run the utilities. What might be wrong?
The answer is in here: Use PowerShell for Visual Studio Command Prompt
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?
精彩评论