无法加载 DLL 'Microsoft.DiaSymReader.Native.amd64.dll [英] Unable to load DLL 'Microsoft.DiaSymReader.Native.amd64.dll

查看:38
本文介绍了无法加载 DLL 'Microsoft.DiaSymReader.Native.amd64.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个基于 4.7.1 的项目.当我重建解决方案时,出现以下错误.

I am working on a project which is built under 4.7.1. when I rebuild the solution, getting following error.

错误 CS0041 写入调试信息时出现意外错误 -- '无法加载 DLL 'Microsoft.DiaSymReader.Native.amd64.dll':指定的找不到模块.(来自 HRESULT 的异常:0x8007007E)'项目名称 位置名称CSC 1 N/A

Error CS0041 Unexpected error writing debug information -- 'Unable to load DLL 'Microsoft.DiaSymReader.Native.amd64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)' project name Location nameCSC 1 N/A

我尝试从 nuget 安装 dll (找不到微软.DiaSymReader.Native.x86.dll).但没有运气.

I have tried to install dll from nuget (Could not find Microsoft.DiaSymReader.Native.x86.dll). but no luck.

环境:

Windows 7 VisualStudio 2017 社区版.

Windows 7 VisualStudio 2017 community edition.

推荐答案

尝试删除它

<PropertyGroup>
<Deterministic>true</Deterministic>
</PropertyGroup>

当Deterministic的属性设置为true时,你的程序编译生成的DLL/EXE文件将被确定.这些文件无论重新生成多少次,其HASH值都是一样的.这是一个很棒的特性,但同时它也可能导致编译错误.你可以参考这个博客了解更多细节blog.paranoidcoding.com/2016/04/05/....

When the attribute of Deterministic is set to true, the DLL / EXE files generated by your program compilation will be determined. The HASH values of these files are the same no matter how many times they are regenerated. This is a great feature, but at the same time it can cause compilation errors. You can refer to this blog for more details blog.paranoidcoding.com/2016/04/05/….

这篇关于无法加载 DLL 'Microsoft.DiaSymReader.Native.amd64.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆