[英]The “ParseILMergeInfoTask” task failed unexpectedly
The program is executing properly without any error in Debug
configuration But in Release
configuration it throws an error. 程序正在执行, 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()
I can't run any program in Release
configuration. 我无法在Release
配置中运行任何程序。 It throws the same error. 它会抛出同样的错误。
Update 更新
I think I found the problem but I don't know to resolve it. 我想我发现了问题,但我不知道要解决它。 Previously I had an error Unable to load package 'Microsoft.Net.Native.SharedLibrary-x64'
. 以前我有一个错误Unable to load package 'Microsoft.Net.Native.SharedLibrary-x64'
。 To resolve it I follow it this answer . 要解决它,我按照这个答案 。 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. 所以我手动安装了Microsoft.Net.Native.SharedLibrary-x64.1.6.1
, Microsoft.Net.Native.SharedLibrary-x86.1.6.1
和Microsoft.Net.Native.SharedLibrary-arm.1.6.1
。 Now If I open Microsoft.Net.Native.SharedLibrary-x64
package folder I can't find build
and tools
folder within it. 现在,如果我打开Microsoft.Net.Native.SharedLibrary-x64
包文件夹,我在其中找不到build
和tools
文件夹。
It is a problem due to the Internet connection. 由于Internet连接,这是一个问题。
C:\\Users\\ponvi\\.nuget\\packages\\microsoft.net.native.sharedlibrary-x64
只需删除包C:\\Users\\ponvi\\.nuget\\packages\\microsoft.net.native.sharedlibrary-x64
Another answer by rubStackOverflow rubStackOverflow的另一个答案
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. 非常奇怪的问题,在我的情况下,我不得不将我的默认网络DNS(网卡)从8.8.8.8更改为208.67.222.222。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.