首页 > 技术文章 > 改变Prompt默认路径,Change Default Visual Studio Command Prompt Location

xiaochun126 2015-11-13 12:36 原文

在项目中经常需要使用 Visual Studio Command Prompt编译项目,每次启动时都是默认进入

C:\windows\system32> 目录,

需要cd切换路径,如果把Visual Studio Command Prompt默认启动路径设置为项目路径,那么每次启动只要直接输入msbuild xx.sln就可以编译了,设置方法如下

Right click on "Developer Command Prompt for VS2013" shortcut (which you can find in the "Common7\Tools\Shortcuts" folder from where you installed your VS2013) and choose "Properties",

Change the: "Start in: " directory to your desired location.

默认start in 为:"C:\Program Files (x86)\Microsoft Visual Studio 12.0\"

修改为:"C:\04 Retirement Studio\Solutions\"

推荐阅读