Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
848 views
in Technique[技术] by (71.8m points)

.net - How can I add the VS Command Prompt to Visual Studio 2010 C# Express?

When I install "real" editions, the command prompt exists as a tool, but not in the express edition?

How can I open the special command prompt, and have easier access to the various command-line tools that ship with Visual Studio and the .NET framework?

See Also

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The VS command prompt is not a standaloneshell, but the standard cmd.exe with some EnvironmentVariables setup — through vcvarsall.bat

Charmingly, vcvarsall.bat only ships with the c++ edition, and resides in the Microsoft Visual Studio 10.0VC folder.

So if you haven’t installed VS c++ Express — and you want to access the shell, you probably have to install VS c++ Express; that’s what I did, anyway.

  1. Select Tools >> External Tools in Visual Studio.
  2. Click Add
  3. Fill in the Title - I used Visual Studio Command &Prompt (C is already assigned to Customize)
  4. Command: cmd.exe (should already be on your PATH)
  5. Arguments: /k "pathoMicrosoft Visual Studio 10.0VCvcvarsall.bat"
  6. Pick an Initial directory. I used $(ProjectDir)
  7. Click OK

alt text

I have these notes @ http://www.xradiograph.com/Programming/VisualStudioExpress which were in turn adapted from http://visualbasic.about.com/b/2010/08/17/the-visual-studio-command-prompt.htm and other sources


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...