CUDA 10 in VS 2017: Edited Program runs Previous.

I have setup Cuda 10 with Visual Studio 2017.

So To first start off, I ran this code:

#include <cuda_runtime.h>
#include <device_launch_parameters.h>
#include <stdio.h>
#include
#include

global void kernel(void) {

}

int main(void)
{
kernel <<<1, 1 >>>() ;
printf(“Hi World”);
system(“pause”);
return 0;
}

It ran smoothly… Having to build the code (Ctrl+Shift+B) and Run (F5).
However I than made changes to the code with the desired output being “Hello World” instead of “Hi World” as the above.

Repeated the above.
========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

Ran it but it runs the previous program ie. the above written, output-ing “Hi World” instead of the “Hello World”.

A little help with this issue

I figured it out!

I need to compile it.

Ctrl+F7.