问题描述
我正在尝试使用 Mono 在 Rider 中构建一个项目,但我会不断收到此错误:
I'm trying to build a project in Rider using Mono and I can keep on getting this error:
错误 CS0041:写入调试信息时出现意外错误 -- 'WindowsPDB 编写器不可用 - 找不到Microsoft.DiaSymReader.Native.x86.dll'
Error CS0041: Unexpected error writing debug information -- 'Windows PDB writer is not available -- could not find Microsoft.DiaSymReader.Native.x86.dll'
有人知道我为什么会收到这个错误吗?我试过在网上搜索它,但我能找到的只是以前的 SO 问题,但从未得到回答:Monodevelop构建失败,找不到Microsoft.DiaSymReader.Native.x86.dll'我不知道从哪里开始.任何帮助将不胜感激.
Does anybody have any idea why I'm getting this error? I've tried searching for it online and all I could find was a previous SO question that never got answered: Monodevelop fails to build, can't find Microsoft.DiaSymReader.Native.x86.dll' I have no idea where to start. Any help would be appreciated.
推荐答案
对,库存在.但在 Visual Studio 上,使用 NuGet link to nuget package 它将添加参考并在构建后将 Microsoft.DiaSymReader.Native.(arch).dll 添加到//debug 中.所以,你必须想办法得到这样的.dll.
Right, the library exists. but on Visual Studio, using NuGet link to nuget package it will add the reference and add the Microsoft.DiaSymReader.Native.(arch).dll into //debug, once you build it. So, you must find the way to get such .dll.
一旦你有了你需要的带有拱门的 .dll.继续添加作为 Monodevelop 查看此 dll 的外部参考.
Once you have the .dll with the arch you need. Proceed to add as a external reference on Monodevelop see this the dll.
开始构建.
这篇关于找不到 Microsoft.DiaSymReader.Native.x86.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!