0

I have a console application 'DbCreate' which create .mdf file. And I have another application which uses that .mdf file. How can I call pre-buld action of the second application, which will first call DbCreate application? Thanks for help

Oluwafemi
  • 14,243
  • 11
  • 43
  • 59
Raskolnikov
  • 3,791
  • 9
  • 43
  • 88
  • This should help http://stackoverflow.com/questions/13767157/in-a-visual-studio-pre-build-event-how-do-i-execute-an-exe-in-the-context-of-its – Sandeep Aug 05 '15 at 08:44
  • How will you ensure that the first application has finished creating .mdf file before your application launches? – Sandeep Aug 05 '15 at 08:46

1 Answers1

0

While this is theoretically possible (reparse point) it would be very hard. A "prebuilt" application does what it is programmed to do, which also implies that it does not do what it's not programmed to do. If you want to change the behavior of the second program, you'll most likely need to alter that second program.

If the second program offers configuration options for this feature, then it's possible but it wouldn't be a programming question anymore.

MSalters
  • 173,980
  • 10
  • 155
  • 350