CUDA 3.1 and Visual Studio 2010 Problem migrating from VS2005 to VS2010

My project works perfectly using the recent CUDA 3.1 toolkit and built with Visual Studio 2005. But I just upgraded to Visual Studio 2010. The MS conversion wizard converted CUDA.RULES to CUDA.TARGETS with one error saying that semicolons are the only supported delimiter.

The CUDA special build rules appear in the project configuration and a spot check shows that they look correct. Just to be sure, I deleted them and reloaded CUDA.TARGETS. Looks good. But the .CU files won’t compile at all. I get an unexplained error in line 45 of CUDA.TARGETS. The NVCC compiler isn’t even invoked.