Casey Crookston
Casey Crookston

Reputation: 13955

How to make Visual Studio '17 do a build before launching in debug mode

I am working on a console app that I inherited form the developer who I replaced. When I make code changes and then run it in debug mode, the changes do not take effect unless I remember to build the solution first.

I've never seen this before. Usually when you enter debug mode, it does a build. I've looked through the properties of both the solution and the project, but I'm not seeing where to set this.

What am I missing here?

Upvotes: 0

Views: 162

Answers (3)

Casey Crookston
Casey Crookston

Reputation: 13955

Jeev's answer lead me to the solution.

Options -> Projects and Solution -> Build and Run

Un-check the checkbox that says Only build startup projects and dependencies on Run.

Upvotes: 0

Zeus82
Zeus82

Reputation: 6375

Try going to Options -> Projects and Solution -> Build and Run and making sure that On Run, when projects are out of date is not set to Never build

Upvotes: 1

AutoTester213
AutoTester213

Reputation: 2862

Right-click the Solution (not project) in the Solution Explorer and select Configuration Manager. Check if Build is turn off for the current configuration.

If it is checked un check it and check it back again that should do the trick

Upvotes: 1

Related Questions