10

I am using Visual Studio 2017 ver 15.5.0 (the latest) to develop some CUDA/C++ code. The issue is that upon code changing I have to manually select rebuild solution. When I press f5 button it does not build a new version. When I press build, it says that solution is up-to-date (although code has been changed).

I noticed that this thing occurs in other projects too, so it should be related to global VS settings. I am familiar with this topic and I made sure that the option "always build" is selected.

Thanks, Mikhail

Mikhail Genkin
  • 3,247
  • 4
  • 27
  • 47
  • Does anyone have the same problem? – Mikhail Genkin Dec 07 '17 at 17:30
  • Yes, in my instance visual studio consistently fails to properly rebuild code that has changed, resulting in linker errors or runtime exceptions. If I don a clean/rebuild it works fine. – Dan Mar 02 '18 at 16:44
  • 1
    It has been reported, and seems to have been fixed, but I guess it's regression... Anyone with this problem should first check the setting at `tools-> options -> Projexts and Solutions -> Build and Run -> On Run, when projects are out of date`. If it is not set to **Never Build** then click on the feedback icon in the top-right (between the notifications flag icon and the quickluanch combobox). Search for "recompile changes" and vote. Edit: fixed but not yet in the currently released version, for now it's in the [15.6 preview 4](https://www.visualstudio.com/vs/preview/) version. – Louis Somers Mar 23 '18 at 10:47
  • I have a similar issue, but with .asm assembly files in a project. I am using VS 2022. – Ivan_a_bit_Ukrainivan Apr 27 '22 at 16:41

0 Answers0