每次都要在控制台进入VS的VC目录然后运行vcvarsall.bat才能使用devenv,怎么设置才能在任意地方都使用devenv命令呢?
认证0级讲师
Add the devenv directory path to the system environment variable path
The easiest way is to generate a shortcut and put it on the launch bar or desktop. If the shortcut in the picture below is , just click the icon when using it.
I use Powershell + PSCX. PSCX has an ImportVisualStudioVars command. Add it to your personal ps configuration and open powershell to use it
Add the devenv directory path to the system environment variable path
The easiest way is to generate a shortcut and put it on the launch bar or desktop. If the shortcut in the picture below is
, just click the icon when using it.
I use Powershell + PSCX. PSCX has an ImportVisualStudioVars command. Add it to your personal ps configuration and open powershell to use it