“ GetVersionTask”任务意外失败

时间:2019-05-15 11:30:09

标签: c# .net-framework-version

我有一个要构建的解决方案。但是,在构建过程中会发生此错误:System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified at System.Diagnostics.Process

我试图修复Visual Studio,添加了一些Visual Studio Build Tools,试图配置一些文件,但仍然一无所获,而且很难在网上找到答案(至少对我来说如此)

这是整个出现的错误:

Severity    Code    Description Project File    Line    Suppression State
Error       The "GetVersionTask" task failed unexpectedly.
System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start()
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at InlineCode.GetVersionTask.Execute() in d:\Users\user\AppData\Local\Temp\1\fuwo4yzi.0.cs:line 51
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() Project.Web D:\locationOfProject    1882    

我只想构建项目,但是由于上述错误,此Project.Web失败了。

0 个答案:

没有答案