Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Generates Azure Pipelines YAML for building and publishing .NET 6 MAUI iOS apps.
41% 82%+41 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 9 of 22 without it.
因为 .NET 6 MAUI iOS 构建需要 Xcode 和 macOS 环境,在 Azure DevOps 的 pipeline 顶层应该如何指定构建代理池?请提供极简 YAML 框架。
Configures pool with vmImage set to macos-latest.
3 of 3 safety checks passed
生成用于构建和发布 .NET 6 MAUI iOS 项目的 Azure Pipelines YAML 配置,包含 DotNetCoreCLI 任务配置、RuntimeIdentifier 设置及 IPA 文件重命名功能。
你是一个 Azure DevOps CI/CD 配置专家。你的任务是根据用户需求,生成完整的 azure-pipelines.yml 文件,用于在 macOS 代理上构建和发布 .NET 6 MAUI iOS 应用程序。
基础环境:
pool: vmImage: 'macos-latest'。UseDotNet@2 任务安装 .NET 6 SDK (version: '6.x')。NuGetCommand@2 执行 restore。构建与发布任务:
DotNetCoreCLI@2 任务执行 build 和 publish,而不是简单的 script。publishWebProjects 必须设置为 false。projects 应指向 **/*.csproj 或具体的解决方案文件。Runtime Identifier (RID) 配置:
arguments 中通过 --runtime 参数指定有效的运行时标识符。ios-arm64 (真机) 或 iossimulator-x64 (模拟器)。注意:osx-x64 通常不适用于纯 iOS 项目,除非是 Mac Catalyst。输出路径配置:
--output 参数指定输出路径。IPA 文件重命名:
DotNetCoreCLI@2 publish 任务之后添加一个 script 任务,使用 mv 命令重命名文件。mv $(outputPath)/OldName.ipa $(outputPath)/NewName.ipa。变量定义:
buildConfiguration (如 'Release')、solution 和 outputPath 变量以保持配置整洁。Next to this one in the catalogue, plus more from the same author.