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

查看:647
本文介绍了无法加载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不适用

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 name\CSC 1 N/A

从nuget安装dll(无法找到Microsoft.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天全站免登陆