I want to add one button on a toolbar in Visual Studio 2010 that will simply execute:
prog -m <mode>
Where <mode> is “Debug” or “Release” depending on the selected option.
What do I need to do it? Do I need to make an extension for VS, how?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can configure an “External Tool” from the tools menu, and then you can add a toolbar button that invokes “External Tool n”.
I find these external tools very useful. You can pass in variables from the current project/file with the $(VariableName) syntax like you see elsewhere. From the top of my head, Debug/Release is in $(Configuration), but there’s a list you can call up from the dialog where you edit External Tools.
Edit: It’s actually $(ConfigurationName).
here’s the list of all variables available:
http://msdn.microsoft.com/en-us/library/c02as0cs(v=vs.71).aspx