Search code examples
visual-studiobuild.net-5visual-studio-debugging

Visual Studio debugger starts Solution build


I've designed a Visual Studio 2022 solution that contains 6 projects. One produces an executable (.exe) and the others produce dlls that are consumed by the executable. I've noticed that when I try to debug the executable, Visual Studio starts a build for the solution every time I debug. I'm at a loss as to why it builds the solution when nothing has changed in any project. I'm assuming that something in a project is causing the build to occur, but, I don't know what that may be.

Any ideas on how to troubleshoot this?

Update: This solution is built for.Net5. I found this setting in the options under SDK-Style projects that does not appear to work.

enter image description here


Solution

  • The post, "Visual Studio not auto-building when I press the debug button" solved my problem. I set the following to force Visual Studio to NOT build each time I started the debugger.

    enter image description here