无法为 xamarin android 项目使用调试器:System.IO.FileNotFoundException:无法加载文件或程序集 Mono.Posix [英] Can't use debugger for xamarin android project: System.IO.FileNotFoundException: Could not load file or assembly Mono.Posix

查看:32
本文介绍了无法为 xamarin android 项目使用调试器:System.IO.FileNotFoundException:无法加载文件或程序集 Mono.Posix的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将我的 Visual Studio 2017 升级到 15.2v (26430.12)

After upgrading my visual studio 2017 to 15.2v (26430.12)

Xamarin.Android SDK 7.3.1.2 (9dbc4c5)

不能再使用调试器了.项目构建成功并且部署完成,但随后发生此错误:

Can't use the debugger anymore. The project builds successfully and deployment finishes but then this error happens:

无法加载文件或程序集 Mono.Posix

Could not load file or assembly Mono.Posix

完整的错误信息:

推荐答案

Elvis 的回答是正确的.但是,除了将文件 Mono.Posix.dll 复制到正确的位置之外,您还需要通过右键单击文件、选择属性并选中取消阻止框来取消阻止该文件.之后,您需要重新启动 Visual Studio.

Elvis' answer is correct. However in addition to copying the file Mono.Posix.dll to the correct location, you also need to unblock the file by right clicking on the file, selecting properties and checking the unblock box. After that you need to restart Visual Studio.

这篇关于无法为 xamarin android 项目使用调试器:System.IO.FileNotFoundException:无法加载文件或程序集 Mono.Posix的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆