Simple Cuda code giving MSB3721 error

I recently started learning CUDA programming in visual studio 2015.Here i did all the steps stated in this linkhttps://web.archive.org/web/20160324200520/http://www.stevenmarkford.com/installing-nvidia-cuda-with-visual-studio-2010/ to integrate visual c++ with CUDA.
The code is given below:

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

int main(int argc, char** argv)
{
	int devicecount = 0;
	cudaError_t error_id = cudaGetDeviceCount(&deviceCount);
	return 0;
}

Now it gives the following error(I have already set the MSBuild Output verbosity to detailed):

MSB3721 : The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\bin\nvcc.exe” -gencode=arch=compute_30,code=“sm_30,compute_30” --use-local-env --cl-version 2015 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\include" -G --keep-dir Debug -maxrregcount=0 --machine 32 --compile -cudart static -g -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o Debug\Source.cu.obj “C:\Users\USER\Desktop\CUDA Projects\tttt\tttt\Source.cu”” exited with code 1
MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\bin\nvcc.exe” -gencode=arch=compute_30,code=“sm_30,compute_30” --use-local-env --cl-version 2015 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\include" -G --keep-dir Debug -maxrregcount=0 --machine 32 --compile -cudart static -g -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o Debug\Source.cu.obj “C:\Users\USER\Desktop\CUDA Projects\tttt\tttt\Source.cu”” exited with code 1.

How do i remove these errors and be able to compile CUDA programs in Visual Studio?