How do I add a custom "Run/Debug in X" command to Visual Studio 2012?
I have a C#/.NET application, let's call it "X," that supports loadable plugins. To write a plugin, I create a new C# Class Library project in Visual Studio, reference a certain assembly, and write my code. To test the plugin, I need to copy the compiled plugin DLL to a particular runtime directory, write an XML configuration file, and run X. I can automate some of this using a Post-Build Event and the project's Debug properties ("Start external program").
But what I really want is to click Debug and then click a custom "Run in X" (or "Debug in X") command that invokes some kind of plugin or script to do all of this. The script will handle creating an X config file, runtime directory, copying the DLL, launching the X application and attaching the debugger to it.
I'm willing to write a Visual Studio plugin to accomplish this, but don't really know where to start.