“GetItCmd”任务意外失败 - NullReferenceException

问题描述

我在 RAD Studio 中有一个 Delphi 项目,我在其中使用 GetIt 包管理器添加一个包。添加包后,我还添加了包作为项目的依赖项。但是随后项目没有构建,并给出以下错误

[MSBuild Error] The "GetItCmd" task Failed unexpectedly.
System.NullReferenceException: Object reference not set to an instance of an object.
  at Borland.Build.Tasks.Common.CommandLineTask.Execute()
  at Borland.Build.Tasks.Shared.GetItCmd.Execute()
  at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy,ItemBucket bucket,TaskExecutionMode howToExecuteTask,ITask task,Boolean& taskResult)

使用 Google,我在 GitHub 上发现了这篇文章,说明我应该将 BCDHost 环境变量设置为“true”。

https://gist.github.com/IgnoredAmbience/37ef8be48ffd58ee1c92d5b660ff6e3b

但这是为什么呢?这个设置有什么作用?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)