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

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