Win7 SDK 7.1 x64 command line error MSB3721 code-1 @ only repeat build

Program compiles and runs at first build. Any attempt to build it again results in command line error. Temporary fix is surprising because all what is needed is to go back to platform v100, compile it with errors then go back to platform SDK7.1. It runs but only once without error.

Other things I tried is to remove “keep directory” line and add -I. option.

I am using VS2010 on x64 and Cuda 4.2 SDK.

Any suggestions. Is it fixed in Cuda 5.0?