How can I compile CUDA code then link it to a C++/CLR project

https://devtalk.nvidia.com/default/topic/1017472/cuda-programming-and-performance/how-to-add-a-cuda-file-to-vs-2015-c-solution/post/5186903/#5186903

Please follow the link and see if this helps.

I adjust Visual Studio 2012 with CUDA 8.0 so:

https://devtalk.nvidia.com/default/topic/979462/cuda-programming-and-performance/how-can-i-compile-cuda-code-then-link-it-to-a-c-clr-project/post/5078559/#5078559

…and for file *.cu - Element type → CUDA C/C++.