Xamarin - 将 C# 源代码附加到 NuGet 包

Xamarin - Attach c# source code to NuGet package

在我的 xamarin 中的 c#/mono 项目中找不到将源代码附加到预构建程序集的方法 ide。
我想阅读一些开源 NuGet 程序集的源代码 code/implementation(源文件在 github 上可用)。
Visual Studio 中有一个名为 "attach source" 的功能,因此您可以将源代码附加到任何预构建程序集,并轻松阅读任何开源 Nuget 包的实现。
是否有解决方法可以在 Xamarin studio 中实现?

谢谢

查看源代码:

如果您有来自在 XS/MD 和 'Goto to Declaration'(right-click/select、cmd-D、...)中突出显示的第 3 方包的 Method/Property,则Assembly Viewer 将打开,因为您没有源代码。将 window 右上角的下拉菜单从 Summary 更改为 C#。

调试中:

Xamarin Studio 是否会支持通过“http://www.symbolsource.org”选择性调试第三方库框架(通过 PDB)的功能?

June 2014 : We don't currently have any plans for this, but please suggest it on UserVoice.

注意:我找不到 UserVoice 讨论 @http://forums.xamarin.com/discussion/17934/support-for-source-server-support

添加一个新的@Xamarin Product Suggestions

您可以手动执行此操作:

从symbolsource.org(或其他提供服务的符号,如微软的参考源PDB等)中获取您需要的PDB,然后手动转换PDB to MDBs

个人我已经做到了,但是通过 Cecil 从 PDB 到 MSB 并不总是(?)完美,你必须确保使用正确版本的 PDB,否则这个会失败的。在这一点上,如果我真的在追踪一个错误,我将把开源作为一个子模块覆盖到我的项目中,然后 configure/build/reference 它...