Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to load DLL 'Microsoft.DiaSymReader.Native.amd64.dll

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

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

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

environment:

Windows 7 VisualStudio 2017 community edition.

like image 246
Thota Suvarsha Avatar asked Dec 28 '18 05:12

Thota Suvarsha


1 Answers

Try deleting it

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

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/….

like image 123
Stone Avatar answered Nov 15 '22 06:11

Stone