"ParseILMergeInfoTask" 任务意外失败

The "ParseILMergeInfoTask" task failed unexpectedly

程序在 Debug 配置中正常执行,没有任何错误但是在 Release 配置中它抛出错误。

The "ParseILMergeInfoTask" task failed unexpectedly.
System.Exception: File 'SharedAssemblyILMergeInfoFilePath' passed to argument 'x86\ret\SharedAssemblyILMergeInfo.csv' does not exist.
  at Microsoft.Build.ILTasks.ParseILMergeInfoTask.Execute()
  at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
  at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

我无法运行 Release 配置中的任何程序。它抛出同样的错误。

更新

我想我发现了问题,但我不知道如何解决它。之前我有一个错误 Unable to load package 'Microsoft.Net.Native.SharedLibrary-x64'。为了解决它,我遵循它 . So I installed Microsoft.Net.Native.SharedLibrary-x64.1.6.1, Microsoft.Net.Native.SharedLibrary-x86.1.6.1 and Microsoft.Net.Native.SharedLibrary-arm.1.6.1 manually. Now If I open Microsoft.Net.Native.SharedLibrary-x64 package folder I can't find build and tools folder within it.

这是因特网连接的问题。

  1. 直接删除包 C:\Users\ponvi\.nuget\packages\microsoft.net.native.sharedlibrary-x64
  2. 使用移动数据下载程序包。

rubWhosebug

的另一个

Really strange issue, in my case, I had to change my default network DNS(network card) from 8.8.8.8 to 208.67.222.222.