如何在Xamarin中将FormsViewGroup.dll的$(TargetFrameworkVersion)从(v7.1)减少到(v6.0) [英] How to decrease $(TargetFrameworkVersion) for FormsViewGroup.dll from (v7.1) to (v6.0) in Xamarin

查看:176
本文介绍了如何在Xamarin中将FormsViewGroup.dll的$(TargetFrameworkVersion)从(v7.1)减少到(v6.0)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Xamarin的新手.我已使用Xamarin组件安装了VisualStudio 2017,并且我的android sdk已更新为Android(v6.0).我创建了一个新的Xamarin项目,但出现错误:

I am new to Xamarin. I have installed VisualStudio 2017 with Xamarin component and my android sdk is updated to Android (v6.0). I have created new Xamarin project and I am getting errors:

Severity    Code    Description Project File    Line    Suppression State
Warning     The $(TargetFrameworkVersion) for Xamarin.Forms.Platform.dll(v7.1) is greater than the $(TargetFrameworkVersion) for your project (v6.0).
You need to increase the $(TargetFrameworkVersion) for your project.    App2.Android    C:\(PATH-TO-REPOS)\repos\App2\App2\App2.Android\App2.Android.csproj     

我不想定位(v7.1),请告诉我在哪里可以将FormsViewGroup.dll$(TargetFrameworkVersion)更新为定位(v6.0).

I don't want to target (v7.1) please tell me where I can update the $(TargetFrameworkVersion) for FormsViewGroup.dll to target (v6.0).

某人

There is already a similar question raise by someone here. But I didn't find any solution to decrease the version for FormsViewGroup.dll. Instead they suggested to update Android SDK But I don't want to target (v7.1).

请向我建议将FormsViewGroup.dll$(TargetFrameworkVersion)更新为目标(v6.0)的解决方案.

Please suggest me the solution to update the $(TargetFrameworkVersion) for FormsViewGroup.dll to target (v6.0).

谢谢

推荐答案

有几种原因可以解释这一点,您可以尝试这样做:

There are several reasons could explain this, you could try doing this :

  • 解决方案一

清理了temp文件夹,删除了C:\Users\name\AppData\Local\Temp\MonoAndroid,Version=v6.0.AssemblyAttributes.cs, Msbuild状态取决于临时文件.

Cleaned the temp folder, removed the : C:\Users\name\AppData\Local\Temp\MonoAndroid,Version=v6.0.AssemblyAttributes.cs, Msbuild state depends on temp files.

  • 解决方案二
  • Solution two
  1. 转到C:\ Program Files(x86)\ Android \ android-sdk.
  2. 运行SDK Manager.exe.
  3. 单击更新软件包. (它将下载必要的更新)
  4. 转到应用程序"属性
  5. 设置目标Android版本(根据错误设置为6或7).

这篇关于如何在Xamarin中将FormsViewGroup.dll的$(TargetFrameworkVersion)从(v7.1)减少到(v6.0)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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