-1

How can I programmatically open multiple solutions in Visual Studio and start debugging them simultaneously?

  • I don't know about multiple Solutions, but you can definitely debug multiple projects from one Solution simultaneously, so you could create a custom Solution just for that purpose. – 500 - Internal Server Error Feb 02 '23 at 11:28
  • I have multiple microservices, what I want to achieve is to create a custom script using c# that will open all the services and start the debugger. @500-InternalServerError – Abdul Moiz Feb 02 '23 at 11:34
  • What have you tried to achieve what you described in your question? What did not work? Where do you struggle? Please add what you have tried so far. – burnsi Feb 02 '23 at 11:52
  • Has your problem been solved – wenbingeng-MSFT Feb 06 '23 at 01:19
  • I attempted to use the EnvDTE library to solve my issue, however, I did not obtain optimal results. The library allows me to open all the solutions and initiate debugging, but it is slow and consumes a lot of memory. Can anyone suggest a more efficient solution? @wenbingeng-MSFT – Abdul Moiz Feb 07 '23 at 05:40
  • @AbdulMoiz Hello, can you tell me why you don't use the method of calling the dll? – wenbingeng-MSFT Feb 07 '23 at 07:30

1 Answers1

0

You can achieve this function by calling dll. For example, I have a Project a in Solution a and a Project b in Solution b. At this time, I need to copy the Project b.dll and Project b.pdb to the Solution a\Project a\bin\Debug directory, and then call it. Please refer to the details. Debugging multiple solutions in Visual Studio

wenbingeng-MSFT
  • 1,546
  • 1
  • 1
  • 8