【问题标题】:Add Command prompt in VS 2008 Express Edition manually在 VS 2008 Express Edition 中手动添加命令提示符
【发布时间】:2011-01-06 06:16:38
【问题描述】:

为了在 VS 2008 Express Edition 中添加命令提示符,我做了以下步骤: Tools->External Tools->Click on Add。然后我输入了以下信息:

Title: Visual Studio 2008 Command Prompt
Command: cmd.exe
Arguments: %comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86
Initial Directory: $(ProjectDir)

然后OK/Apply

之后,当我进入工具菜单并单击 Visual Studio 2008 命令提示符时,命令提示符打开但我收到以下错误消息:

'"C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"' is not recognized as an internal or external command, operable program or batch file.

请有人帮我解决这个问题。或者有人新教我如何在 VS 2008 Express Edition 中手动将命令提示符添加到工具菜单。

【问题讨论】:

    标签: .net visual-studio visual-studio-2008 command-prompt


    【解决方案1】:

    为什么将%comspec% 环境变量指定为cmd.exe 参数的一部分? %comspec%不是指向cmd.exe吗?

    我也不确定您为什么还要在参数末尾添加x86

    看来/k "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" 的参数就足够了

    最后,我目前不在 Windows 机器上,但是您是否仔细检查了 .bat 文件的路径?至少对于 Visual Studio 的非免费版本,我似乎记得 .bat 文件类似于 vsvars.batvcvars32.bat。不过,Express Edition 的名称可能会有所不同。

    【讨论】:

      【解决方案2】:

      在 VS 2010 Ultimate 中手动添加命令提示符-http://bit.ly/1L2tseJ

      【讨论】:

      • 这里非常不鼓励仅链接的答案,因为这些链接将来可能会失效。我建议您使用您引用的来源中的引用来编辑您的答案
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-14
      • 2021-01-16
      • 1970-01-01
      • 2013-03-30
      • 1970-01-01
      相关资源
      最近更新 更多