views:

48

answers:

1

Is there anyway to customize the solution / project file so that it launches an EXE when it's loaded into Visual Studio or, as a second option, when Visual Studio is started? I know I can make a link to a BAT file or similar but I'd rather make it more seamless if possible.

I did check the possibility of adding custom tasks into the project file, since they are just MSBuild scripts but I couldn't find a suitable event to trigger it on.. They're all build-centric events.

+1  A: 

Look at this question (Enumerate opened windows upon solution loading)

Private Sub SolutionEvents_Opened() Handles SolutionEvents.Opened
  // VB.net code that runs the exe
End Sub
Shay Erlichmen
I guess I could use something like that but I'd rather use an MSBuild task or similar. It would mean I could check in the exe into the repository, as well as the launch instructions and have it propagate to all the team members without having to create the macro on each machine.
TheCodeJunkie