Compartilhar via


Did you know… How the External Tools Tokens Work? - #205

Updated 30Apr2008: Note the binary directory is for Visual Studio 2008.

I’ve hinted at a few of the external tools tokens, but let’s explore a little more.  I think most of these are self-explanatory, and the help documentation explores each in depth, but here’s a high-level overview.

All of the Item and Current tokens (available for the Arguments edit box) operate on the currently-active editor.  Note the editor does not have to have focus in order to work, but just have (inactive) selection.

Item and Current Tokens

For the Initial Directory edit box, you’ll find all the directory tokens, but one in particular to call out is the Binary Directory.   Note:  This is new functionality for Visual Studio 2008.

Directory Tokens

The Target Directory token targets the obj directory (\obj\Debug\), but if you need the final bits that go into the bin directory (\bin\Debug\), use the Binary Directory token.

Comments

  • Anonymous
    April 30, 2008
    Is the "Binary Directory" new for 2008 or just missing in the Express version(s) in 2005?

  • Anonymous
    April 30, 2008
    Yes, the Binary Directory is for 2005.  Thanks for catching that.  Obviously, writting down "new" next to this token in my notebook had no effect on me when i wrote this tip.  =) I've updated the tip to reflect 2008 behavior.