开发者

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

开发者 https://www.devze.com 2023-03-08 09:34 出处:网络
With command prompt, I run vsvars32 to run all the visual studio command line utilities (compiler, linke开发者_C百科r ...).

With command prompt, I run vsvars32 to run all the visual studio command line utilities (compiler, linke开发者_C百科r ...).

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

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

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


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消