android - 构建 Xamarin.Android azure 管道出现错误 XA0000 : Could not determine API level for $(TargetFrameworkVersion) of 'v13.0'

标签 android azure msbuild

构建 azure 管道时出现错误。在编译目标 api 级别 v12.0 之前它工作正常。现在,我将编译目标更新为 v13.0,它停止构建 Xamarin.Android azure 管道并给出错误 XA0000: 无法确定 'v13.0' 的 $(TargetFrameworkVersion) 的 API 级别

我尝试过的解决方案:

  1. 已将 MSBuild 版本从 MSBuild 15.0 更新到 MSBuild 17.0 - 不起作用。
  2. 将 MSBuild 架构从 MSBuild x64 更新到 MSBuild x86 - 不起作用。

谁知道如何解决这个错误?正确的配置应该是什么?在哪里可以找到有关哪个 Android 版本所需的配置的正确文档?

最佳答案

我也遇到了同样的问题,我的解决方案是将代理规范更改为最新的 Windows。我已从 2019 年更改为 2022 年,并且构建成功。

enter image description here

关于android - 构建 Xamarin.Android azure 管道出现错误 XA0000 : Could not determine API level for $(TargetFrameworkVersion) of 'v13.0' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75939961/

相关文章:

android - android 上的 sqlite 中的单引号

java - 如何在 android 中动态添加多个水平 ListView ,如 android 中的 play store 应用程序

azure - 什么是 Azure 云服务?

azure - 如何使用逻辑应用程序tolower()函数

msbuild - 使用 MSBuild 构建时如何覆盖 InstallShield 路径变量?

msbuild - 跳过 MSBuild 目标

java - 在模拟器中打开时 Android 代码崩溃

android - 水平线填充

azure - 如何将 Windows Azure VM 移动到不同的关联组?

.net - 如何从 NuGet 包提供全局 AnalyzerConfig 文件?