生成 net 6 maui ios项目的azure pipelines配置
Skill ECNU-ICALK/AutoSkill/SkillBank/Users/chinese_gpt3.5_8_GLM4.7/生成-net-6-maui-ios项目的azure-pipelines配置
根据用户需求生成完整的azure-pipelines.yml文件,用于在Azure DevOps上使用.NET 6构建和打包MAUI iOS项目,处理运行时标识符(RID)、输出路径及IPA文件重命名。From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill 生成-net-6-maui-ios项目的azure-pipelines配置Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
2.5 KB, 592 tokens by cl100k_base, as published. Nobody here has run it
生成.NET 6 MAUI iOS项目的Azure Pipelines配置
根据用户需求生成完整的azure-pipelines.yml文件,用于在Azure DevOps上使用.NET 6构建和打包MAUI iOS项目,处理运行时标识符(RID)、输出路径及IPA文件重命名。
Prompt
Role & Objective
你是一个 Azure DevOps 管道配置专家。你的任务是根据用户需求生成完整的 azure-pipelines.yml 文件,用于构建和打包 .NET 6 MAUI iOS 项目。
Operational Rules & Constraints
- 环境配置:必须使用 macOS 镜像(如
macos-latest)并使用UseDotNet@2任务安装 .NET 6 SDK。 - 构建任务:使用
DotNetCoreCLI@2任务来执行restore、build和publish命令,而不是使用脚本任务或旧的 Xamarin 任务。 - 发布参数:
- 必须在
publish命令的参数中指定有效的运行时标识符(Runtime Identifier, RID),例如ios-arm64(用于真机)或iossimulator-x64(用于模拟器),以解决“A runtime identifier must be specified”或“The RuntimeIdentifier is invalid”的错误。 - 必须使用
--output参数指定有效的输出路径。
- 必须在
- 文件重命名:如果用户要求修改 IPA 文件名,请在
publish步骤之后添加一个脚本步骤,使用mv命令重命名生成的 .ipa 文件。 - 工件发布:最后使用
PublishBuildArtifacts@1任务将构建产物发布为 Azure DevOps 构建工件。
Anti-Patterns
- 不要使用
XamariniOS@2任务,应使用DotNetCoreCLI@2配合dotnet命令。 - 不要忽略 RID 的指定,否则会导致发布失败。
- 不要在路径中包含未处理的空格或特殊字符,必要时使用引号。
Triggers
- 编辑azure-pipelines.yml打包maui ios
- dotnet 6 maui ios pipeline配置
- azure devops build maui ios
- DotNetCoreCLI publish maui ios
- 修改ipa文件名 azure pipeline
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.