Error MSB3721

1>Build started 2/20/2020 9:20:53 PM.
1>Building with tools version “15.0”.
1>Target “EnableIntermediateOutputPathMismatchWarning” skipped, due to false condition; (’(RestoreProjectStyle)' == 'PackageReference') was evaluated as ('' == 'PackageReference'). 1>Target _CheckForInvalidConfigurationAndPlatform: 1> Task "Error" skipped, due to false condition; ( '(_InvalidConfigurationError)’ == ‘true’ ) was evaluated as ( ‘’ == ‘true’ ).
1> Task “Warning” skipped, due to false condition; ( ‘(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ). 1> Using "Message" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 1> Task "Message" 1> Configuration=Debug 1> Done executing task "Message". 1> Task "Message" 1> Platform=x64 1> Done executing task "Message". 1> Task "Error" skipped, due to false condition; ('(OutDir)’ != ‘’ and !HasTrailingSlash(’(OutDir)')) was evaluated as ('C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\x64\Debug\' != '' and !HasTrailingSlash('C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\x64\Debug\')). 1> Task "Error" skipped, due to false condition; ('(BaseIntermediateOutputPath)’ != ‘’ and !HasTrailingSlash(’(BaseIntermediateOutputPath)')) was evaluated as ('obj\' != '' and !HasTrailingSlash('obj\')). 1> Task "Error" skipped, due to false condition; ('(IntermediateOutputPath)’ != ‘’ and !HasTrailingSlash(’(IntermediateOutputPath)')) was evaluated as ('x64\Debug\' != '' and !HasTrailingSlash('x64\Debug\')). 1> Task "Error" skipped, due to false condition; ( '(_InitialMSBuildProjectExtensionsPath)’ != ‘’ And ‘(MSBuildProjectExtensionsPath)' != '(_InitialMSBuildProjectExtensionsPath)’ ) was evaluated as ( ‘C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\cuda_scheduling_new\obj’ != ‘’ And ‘C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\cuda_scheduling_new\obj’ != ‘C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\cuda_scheduling_new\obj’ ).
1> Task “Warning” skipped, due to false condition; ( ‘(EnableBaseIntermediateOutputPathMismatchWarning)' == 'true' And '(_InitialBaseIntermediateOutputPath)’ != ‘(BaseIntermediateOutputPath)' And '(BaseIntermediateOutputPath)’ != ‘(MSBuildProjectExtensionsPath)' ) was evaluated as ( '' == 'true' And 'obj\' != 'obj\' And 'obj\' != 'C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\cuda_scheduling_new\obj\' ). 1>Target "_CheckForInvalidConfigurationAndPlatform" skipped. Previously built successfully. 1>Target SetTelemetryEnvironmentVariables: 1> Using "SetEnv" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Build.CppTasks.Common.dll". 1> Task "SetEnv" 1> VSTEL_SolutionSessionID={BF0A9847-A833-4EFA-AEC2-809650435119} 1> Done executing task "SetEnv". 1> Task "SetEnv" 1> VSTEL_CurrentSolutionBuildID=699909406 1> Done executing task "SetEnv". 1> Task "SetEnv" 1> VSTEL_ProjectID={1ABE8F3D-0B6B-4EB9-A1A0-81C2FB6884EB} 1> Done executing task "SetEnv". 1>Target _PrepareForRebuild: 1>Target BeforeRebuild: 1>Target _PrepareForClean: 1> Using "Delete" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 1> Task "Delete" 1> Deleting file "x64\Debug\cuda_sch.1ABE8F3D.tlog\cuda_scheduling_new.lastbuildstate". 1> Done executing task "Delete". 1>Target BeforeClean: 1>Target "UnmanagedUnregistration" skipped, due to false condition; ((('(_AssemblyTimestampBeforeCompile)’ != ‘(_AssemblyTimestampAfterCompile)' or '(RegisterForComInterop)’ != ‘true’ or ‘(OutputType)' != 'library') or 1> ('(_AssemblyTimestampBeforeCompile)’ == ‘’)) and
1> Exists(’@(_UnmanagedRegistrationCache)’)) was evaluated as (((’’ != ‘’ or ‘’ != ‘true’ or ‘exe’ != ‘library’) or
1> (’’ == ‘’)) and
1> Exists(‘obj\cuda_scheduling_new.vcxproj.UnmanagedRegistration.cache’)).
1>Target CoreClean:
1> Task “Delete”
1> File “x64\Debug\TempCA\cuda_scheduling_new.pdb” doesn’t exist. Skipping.
1> File “x64\Debug\TempCA\cuda_scheduling_new.exe” doesn’t exist. Skipping.
1> Done executing task “Delete”.
1> Using “ReadLinesFromFile” task from assembly “Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.
1> Task “ReadLinesFromFile”
1> Done executing task “ReadLinesFromFile”.
1> Using “FindUnderPath” task from assembly “Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.
1> Task “FindUnderPath”
1> Comparison path is “C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\x64\Debug”.
1> Done executing task “FindUnderPath”.
1> Task “FindUnderPath”
1> Comparison path is “x64\Debug”.
1> Done executing task “FindUnderPath”.
1> Task “Delete”
1> Done executing task “Delete”.
1> Using “RemoveDuplicates” task from assembly “Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.
1> Task “RemoveDuplicates”
1> Done executing task “RemoveDuplicates”.
1> Using “MakeDir” task from assembly “Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.
1> Task “MakeDir”
1> Done executing task “MakeDir”.
1> Using “WriteLinesToFile” task from assembly “Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.
1> Task “WriteLinesToFile”
1> Done executing task “WriteLinesToFile”.
1>Target AssignProjectConfiguration:
1> Using “AssignProjectConfiguration” task from assembly “Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.
1> Task “AssignProjectConfiguration”
1> Done executing task “AssignProjectConfiguration”.
1>Target _SplitProjectReferencesByFileExistence:
1> Task “ResolveNonMSBuildProjectOutput” skipped, due to false condition; (’(BuildingInsideVisualStudio)'=='true' and '@(ProjectReferenceWithConfiguration)'!='') was evaluated as ('true'=='true' and ''!=''). 1>Target _GetProjectReferenceTargetFrameworkProperties: 1> Using "MSBuild" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 1> Task "MSBuild" 1> Done executing task "MSBuild". 1> Task "GetReferenceNearestTargetFrameworkTask" skipped, due to false condition; ('@(_ProjectReferenceTargetFrameworkPossibilities->Count())' != '0' and '(ReferringTargetFrameworkForProjectReferences)’ != ‘’) was evaluated as (‘0’ != ‘0’ and ‘.NETFramework,Version=v4.0’ != ‘’).
1>Target PrepareProjectReferences:
1>Target CleanReferencedProjects:
1> Task “MSBuild” skipped, due to false condition; (’(BuildingInsideVisualStudio)' != 'true' and '(BuildProjectReferences)’ == ‘true’ and ‘@(_MSBuildProjectReferenceExistent)’ != ‘’) was evaluated as (‘true’ != ‘true’ and ‘true’ == ‘true’ and ‘’ != ‘’).
1>Target CleanPublishFolder:
1> Task “RemoveDir” skipped, due to false condition; (’(PublishDir)'=='(OutputPath)app.publish’ and Exists(’(PublishDir)')) was evaluated as ('C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\x64\Debug\app.publish\'=='C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\x64\Debug\app.publish\' and Exists('C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\x64\Debug\app.publish\')). 1>Target AfterClean: 1>Target "EntityClean" skipped, due to false condition; ('@(EntityDeploy)' != '') was evaluated as ('' != ''). 1>Target BeforeCppClean: 1>Target CoreCppClean: 1> Task "MakeDir" 1> Done executing task "MakeDir". 1> Using "CppClean" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.Build.CppTasks.Common.dll". 1> Task "CppClean" 1> Done executing task "CppClean". 1> Task "WriteLinesToFile" 1> Done executing task "WriteLinesToFile". 1>Target AfterCppClean: 1>Target PGInstrumentedClean: 1> Task "Delete" 1> Done executing task "Delete". 1>Target InitializeCudaHostProperties: 1>Target AddCudaCompileMetadata: 1> Building target "AddCudaCompileMetadata" completely. 1> No input files were specified. 1> Using "SanitizePaths" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\Nvda.Build.CudaTasks.v10.0.dll". 1> Task "SanitizePaths" 1> Done executing task "SanitizePaths". 1> Task "ReadLinesFromFile" 1> Done executing task "ReadLinesFromFile". 1> Using "SplitToItemMetadata" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\Nvda.Build.CudaTasks.v10.0.dll". 1> Task "SplitToItemMetadata" 1> Done executing task "SplitToItemMetadata". 1>Target ValidateCudaBuild: 1> Task "Error" skipped, due to false condition; (!Exists((CudaToolkitDir))) was evaluated as (!Exists(C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0)).
1>Target CudaClean:
1> Building target “CudaClean” completely.
1> No input files were specified.
1> Initializing task factory “XamlTaskFactory” from assembly “Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.
1> Using “CudaCompile” task from the task factory “XamlTaskFactory”.
1> Task “CudaCompile”
1> cmd.exe /C “C:\Users\Chengzhang Li\AppData\Local\Temp\tmpf201da61496e46a6bf12958d94a14895.cmd”
1> “C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o x64\Debug\simulation.cu.cu.obj “C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\cuda_scheduling_new\x64\Release\simulation.cu.cu” -clean
1>
1> C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\cuda_scheduling_new>“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o x64\Debug\simulation.cu.cu.obj “C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\cuda_scheduling_new\x64\Release\simulation.cu.cu” -clean
1> nvcc fatal : Could not set up the environment for Microsoft Visual Studio using ‘C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.15.26726/bin/HostX86/x64/…/…/…/…/…/…/…/VC/Auxiliary/Build/vcvars64.bat’
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 10.0.targets(889,9): error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o x64\Debug\simulation.cu.cu.obj “C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\cuda_scheduling_new\x64\Release\simulation.cu.cu” -clean” exited with code 1.
1> Done executing task “CudaCompile” – FAILED.
1>Done building target “CudaClean” in project “cuda_scheduling_new.vcxproj” – FAILED.
1>
1>Done building project “cuda_scheduling_new.vcxproj” – FAILED.
1>
1>Build FAILED.
1>
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 10.0.targets(889,9): error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o x64\Debug\simulation.cu.cu.obj “C:\Users\Chengzhang Li\Desktop\Yongce\cuda_HB_V2\cuda_scheduling_new\x64\Release\simulation.cu.cu” -clean” exited with code 1.
1> 0 Warning(s)
1> 1 Error(s)
1>
1>Time Elapsed 00:00:01.61
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========