# CUDA 4.0 targets <UsingTask> is not valid!

Hi,
if someone have this error when enable CUDA 4.0 rule in Visual Studio 2010:

The result “” of evaluating the value “\$(CudaBuildTaskPath)” of the “AssemblyFile” attribute in element is not valid. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 4.0.targets

Can fix it following this thread: http://stackoverflow.com/questions/6156037/issue-with-production-release-of-cuda-toolkit-4-0-and-nsight-2-0/6167915#6167915

It is unbelievable that CUDA 4.0 and Parallel Nsight 2.0 , production version, have so many bugs, I have wasted my time to fix this and many other problems related Visual Studio 2010 and CUDA 4.0…

OOOOOOOOOPS this works only without kernel function in cu file, I have this problem on fresh install (Windows 7 x64, Visual Studio 2010 Professionale and Parallel NSight).

Can someone help me please to fix this issue: Error: The result “” of evaluating the value “\$(CudaBuildTasksPath)” of the “AssemblyFile” attribute in element is not valid. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 4.0.targets??

Thx a lot!!