For getting acquainted to more unix based CUDA development, the following command line and related environment are found to works in the current Visual Studio based platform.
cd /d "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v6.5\1_Utilities\deviceQuery"
set path=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;%path%
nvcc -arch=sm_21 -I..\..\common\inc deviceQuery.cpp -o deviceQuery
The command line environment on Microsoft Visual Studio platform that have CUDA properly setup (like the one for approximating the value of pi here) relied on native commands like msbuild as below.
msbuild BlackScholes_vs2010.sln /t:rebuild