Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2022 does not "start" application when debugging multiple projects

I have got an issue with Visual Studio Code 2022. Sometimes - not always - when debugging multiple projects in the same solution, one or more applications do not start. When debugging console applications, VS opens a new coonsole window for each startup project.

Some of the console applications do not show any output. Moreover, the affected projects also do not hit any breakpoints at all.

This issue started with VS2022. The same code worked perfectly with VS2019. In the following screenshot it is shown the first Console.WriteLine did not even get executed (It looks to me as if main is never invoked). enter image description here

I have already checked if a breakpoint in another project blocks debugging, but that is not the case.

like image 806
musium Avatar asked Jul 03 '26 19:07

musium


1 Answers

click on switch between available views and solutions which will show up project solution Icon, right click on the icon and update startup projects. VS 2022 locate startup project

like image 115
user2609937 Avatar answered Jul 06 '26 08:07

user2609937



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!