Search code examples
c#wpfvisual-studiocommand-linesolution

How to launch visual studio + open solution + launch project


For a very peculiar solution I need a customer of mine to:

  1. launch visual studio
  2. open solution
  3. launch project

The target is having a link that does it all so that the customer has just to click on an icon and the magic happens with no efforts from him

So no problem for point 1. but what for the other points?

Thanks


Solution

  • First of all i want to say that i'd discourage you from that approach. if you are hunting down a bug you should look into logging and exception handling. Anyways...

    What you are trying to do can be accomplished with

    devenv.exe /run

    Check out the documentation for more details.