"Microsoft Visual Studio is Busy"

Once I declare a texture reference in a kernel like

texture<float, 2, cudaReadModeElementType> tex;

and start building the solution Visual Studio 2010 doesn’t come back anymore, the build can’t be canceled (I can only kill Visual Studio but not MSBuild.exe) and I only get an endless list of the following warnings:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.0.targets(402,9): warning MSB4220: Waiting for the currently executing task “GenerateDeps” to cancel.

Someone knows a solution?

GTX 460M
v320.00

I’m not sure what solved the issue, either it was reinstallation of CUDA 5.0 or the reboot of the machine. ;)