如何在 Visual Studio 中找到出现此错误的文件?

How do I find the file with this error in Visual Studio?

我在 Visual Studio 中尝试 运行 我的 iPhone 上的 Kinvey Xamarin 入门应用程序时遇到此错误:

Error MT2101: Can't resolve the reference 'System.Void PubnubApi.Pubnub::AddListener(PubnubApi.SubscribeCallback)', referenced from the method 'System.Void Kinvey.RealtimeRouter::Initialize(System.String,System.String,System.String,System.String,Kinvey.AbstractClient)' in 'PubnubPCL, Version=4.0.2.2, Culture=neutral, PublicKeyToken=dc66f52ce6619f44'. (MT2101) (KXStarterApp.iOS)

我不知道如何解决它,但我有一个关于 Visual Studio 的更一般的问题:如何找到它报告的错误的位置?

搜索看起来很糟糕,即使我在编辑器中直接查看它也找不到任何东西。

所以我只是不知道如何开始追踪它。我在哪里可以找到这个文件?

如果错误源自编译的第三方库或 nuget 包,则它没有可供您参考的源文件。如果它源自您自己的代码,错误应该指向特定的文件和行。