Xamarin Studio:无法复制 System.Diagnostics.Tools.dll,因为源文件不存在

Xamarin Studio: Cannot copy System.Diagnostics.Tools.dll, as the source file doesn't exist

我是 Xamarin 的新手,即使在较小的事情上仍然很努力。 :)

开发了一个 Xamarin.Forms 应用程序,它将在 iOS 和 Android 中运行。

我添加了 Android 的定位服务代码。 为此,请点击以下链接: 1. http://developer.xamarin.com/guides/android/platform_features/maps_and_location/location/ 2.https://blog.xamarin.com/introducing-the-google-play-services-component-for-xamarin-android/

但是,发现很多错误,因为google播放服务,我使用Android SDK管理器添加的是最新的。 在为如何使用 SDK 管理器或命令行获取旧版本以及在何处获取旧版本绞尽脑汁几个小时后,发现 Xamarin 确实在 xamarin 商店提供组件,其中包含 Google Play Services 组件。我将它的22.0.0版本添加到项目的components文件夹中。

在那之后,我所有与 google 播放服务相关的错误都消失了,但开始出现以下错误:

Cannot copy System.Diagnostics.Tools.dll to /bin/Debug/System.Diagnostics.Tools.dll, as the source file doesn't exist.

(为了方便阅读,我截断了dll路径)

我的问题是:

  1. 如何解决dll问题?
  2. 无论我采取什么措施来修复 Google Play 服务,它们是否足够好?还是我需要在 IDE 中多加注意?
  3. 添加Google播放服务是否与DLL问题有关?
  1. 我重新启动了 xamarin studio,它为我修复了 DLL 问题。
  2. Google 正在按照上述步骤将 Play 服务添加到项目中。添加 Google Play 服务与 DLL 问题无关。所以,继续面对其他问题 ;)

我在这里遇到了同样的问题。当您尝试构建解决方案时调试仍然 运行 时似乎会出现问题。

我相信调试连接出于某种原因一直处于打开状态,即使我从 Xamarin studio 关闭了它。

希望这对任何人都有帮助。