问题
The title is self explanatory. I would like to add a button to a toolbar in order to run an external executable.
How can I do this?
回答1:
Add the application as an "External Tool", using Tools... > External Tools. Take note of where your entry was added to the list; on a stock vs2010, that would be entry #5.
Click the mini drop-down button on the right side of your toolbar and select Add or Remove Buttons > Customize...
Click Add Command..., select the Tools category on the left, then External Command N on the right, where N is the entry number from the External Tools dialog.
来源:https://stackoverflow.com/questions/7039783/how-can-i-add-a-toolbar-button-to-start-an-exe-file-from-visual-studio-2010