[英]Hot to fix 'VerifyVersionsTask' error at compile Xamarin.Forms project
[英]Is there a way to fix error: 'Xamarin.Forms recommends TargetPlatformMinVersion >= 10.0.17763.0 (current project is -1)'
當我想將 Xamarin 應用程序從 Android 9.0 升級到 Android 10 時遇到問題。
/Users/user/.nuget/packages/xamarin.forms/4.8.0.1269/buildTransitive/Xamarin.Forms.targets(5,5):
Warning: Xamarin.Forms recommends TargetPlatformMinVersion >= 10.0.14393.0 (current project is -1) (WeatherApp)
錯誤出在這部分代碼上:
<Warning
Text="Xamarin.Forms recommends TargetPlatformVersion >= 10.0.17763.0 (current project is $(MicrosoftUIXamlTargetPlatformCheckValue))"
Condition="$(MicrosoftUIXamlTargetPlatformCheckValue) < 17763" />
我想在 Android 10 上運行這個應用程序,但是在真正的 Android 設備應用程序上每次干凈的構建和運行應用程序都沒有響應。
經過大量搜索后,我在發布模式下遇到了類似的問題我找到了對我有用的修復程序
在配置映射下設置構建配置以發布對我有用
確保在配置映射下檢查所有發布配置構建。
我有同樣的問題,當我將我的Xamarin.Forms
NuGet package 更新到版本5.0.0.2545
時它消失了:我剛剛清理了整個解決方案並在安裝更新后重建它。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.