Minwoo Yu
Minwoo Yu

Reputation: 500

Visual Studio 2019 Always run OLD version code

I tried many things that searched on google.

listing I had.

  1. Project -> Property -> Debugging -> Debugging = Auto
  2. Build -> Configuration Manager -> Check OK "BUILD" option ( Also I checked solution platforms and configs. )
  3. Tools -> Option -> Build & Run -> Always Build. and Uncheck "just startup project & dependencys"

Those are what I did to build every pressing F5.

It doesn't work. even though I restart computer or visual studio.

What should I do for it?

ps. My Project is Visual Studio C++ (Empty)

Upvotes: 0

Views: 3888

Answers (2)

SridharKritha
SridharKritha

Reputation: 9641

This may be due to your visual studio having settings that launch the old working code if the current code has some issues.

You could change that setting using the below steps:

Tools > Options > Project and Solutions > Build and Run

Do below settings on the left pull-down menu

On Run, when build or deployment error occurs > Do not launch

Upvotes: 3

Tommy
Tommy

Reputation: 44

I had the same problem. Looking for days but finally i found a solution. The first step is to completely delete Visual Studio (installer as well,yes) and then install it again.This time check on "general options" and not "recommended for C++" in the beginning of the installation(Its where you choose the color of the IDE).I know it's sounds..weird.Let me know if it worked for you too!

Upvotes: 2

Related Questions