Visual Studio 2019 not starting all defined startup projects

Adam-128244 1 Reputation point
2021-03-12T00:28:49.367+00:00

I have a Visual Studio 2019 solution which has about 10 projects. Most are libraries, but three of them are WPF applications. I have selected to debug each of the three WPF applications when I run the program. When I press the play button to launch and debug, about 50% of the time I do see the three applications launch. However, the other 50% only one or two of the applications start. I have not been able to narrow down any rhyme or reason yet and could use some help.

Here is what I have noticed.

  1. the three applications do appear in the task manager
  2. all the selected start applications appear in the debug->windows->processes
  3. when I click the break (or pause) button, I can't only double click on the debug->windows->processes process of the apps that appear to have started and display their respective window (WPF app)
  4. also when in break mode, I do not see any debug->windows->threads for the apps that do not visually appear

very strange! Has anyone else seen this? Any ideas on what I could look for next?

-- Adam

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,681 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,319 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
948 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,406 Reputation points
    2021-03-12T05:46:03.36+00:00

    Hi 46218126,

    You can try to delete the .vs folder next to sln file.

    If it doesn't work, I'm afraid that you need to repair your visual studio.

    Best Regards, Dylan

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our * *documentation* to enable e-mail notifications if you want to receive the related email notification for this thread.**

    0 comments No comments

  2. Mares, Jiri 0 Reputation points
    2023-06-01T09:11:34.29+00:00

    it helps just to "pause" the debug (break all) and then hit continue (a.k.a. play :)
    Sadly I do not have proper solution.
    I'm having this issue with both VS 2019 and VS 2022

    0 comments No comments