如何解决如何解决 Xamarin.Android 的目标框架错误
当我尝试构建我的项目时出现以下错误
The $(TargetFrameworkVersion) for MyApp.Android (v9.0) is less than the minimum required $(TargetFrameworkVersion) for Xamarin.Forms (10.0).
You need to increase the $(TargetFrameworkVersion) for MyApp.Android.
我当前的项目属性设置是:
我真的不明白为什么我在使用这些设置时仍然出现这个错误,目前这对我来说是一个可怕的情况。任何帮助深表感谢。我使用的是 Xamarin Forms 5.0。
解决方法
事实证明,即使在我的 Android 项目的属性中更改了目标框架后,它也没有反映在 .csproj 文件中。结果,我干脆卸载了 Android 项目并将以下行从:
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
到
<TargetFrameworkVersion>v10.0</TargetFrameworkVersion>
简单
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。