Ran into the following, trying to use CUDA in Visual Studio 2010 beta 1:
error MSB4175: The task factory "XamlTaskFactory" could not be loaded from the assembly "Microsoft.Build.Tasks.v4.0". Unable to create Xaml task. Compilation failed.
error MSB4175: Unrecognized escape sequence
NVIDIA doesn’t currently support VS 2010 with CUDA. See this post.
One fix for the escaping issues is to turn the backslashes into forward slashes in the directory paths.
After fixing these you’ll probably have the build abort and complain about not supporting VS 2010. I stopped at this point and used 2008.