开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜