Visual studio 2017 “;CL”;任务在vs2017中意外失败

Visual studio 2017 “;CL”;任务在vs2017中意外失败,visual-studio-2017,Visual Studio 2017,在中构建VC++MFC项目时,我遇到了以下问题 视觉标准2017。我重新安装了vs 2017,但它仍然存在。它已经 与我的代码和以前正确运行的所有项目无关 由于相同的问题,无法构建。该错误指定了 代码 检查TEMP和TMP环境变量(用户和系统),并将这两个文件夹的权限设置为完全控制 您可以参考类似的问题。检查TEMP和TMP环境变量(用户和系统),并将这两个文件夹的权限设置为完全控制 您可以参考类似的问题 <!-- Precompiled headers - need to build

在中构建VC++MFC项目时,我遇到了以下问题 视觉标准2017。我重新安装了vs 2017,但它仍然存在。它已经 与我的代码和以前正确运行的所有项目无关 由于相同的问题,无法构建。该错误指定了 代码



检查TEMP和TMP环境变量(用户和系统),并将这两个文件夹的权限设置为完全控制


您可以参考类似的问题。

检查TEMP和TMP环境变量(用户和系统),并将这两个文件夹的权限设置为完全控制

您可以参考类似的问题

<!-- Precompiled headers - need to build them first -->
<CL Condition="'%(ClCompile.PrecompiledHeader)' == 'Create' and '%
(ClCompile.ExcludedFromBuild)'!='true' and '%(ClCompile.CompilerIteration)' 
== ''"
in  D:\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets.
MSB4018   The “CL” task failed unexpectedly
System.TypeInitializationException: The type initializer for
“Microsoft.Build.Utilities.FileTracker”threw an exception。 --->
System.IO.FileNotFoundException: The system can not find the file
specified. (Exception from HRESULT:0x80070002)    in
System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32
errorCode, IntPtr errorInfo)    in
Microsoft.Build.Shared.NativeMethodsShared.ThrowExceptionForErrorCode(Int32
errorCode)    in
Microsoft.Build.Shared.NativeMethodsShared.GetLongFilePath(String
path)    in Microsoft.Build.Utilities.FileTracker..cctor()    --- End
of internal exception stack trace ---    in
Microsoft.Build.Utilities.FileTracker.FormatRootingMarker(ITaskItem[]
sources)    in Microsoft.Build.CPPTasks.CL.ComputeOutOfDateSources()  
in Microsoft.Build.CPPTasks.TrackedVCToolTask.SkipTaskExecution()   
in Microsoft.Build.Utilities.ToolTask.Execute()    in
Microsoft.Build.CPPTasks.TrackedVCToolTask.Execute()    in
Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
in
Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()