Skip to content
Back to skills

生成 Net 6 Maui Ios项目的Azure Pipelines配置

ASecurity

根据用户需求生成完整的azure-pipelines.yml文件,用于在Azure DevOps上使用.NET 6构建和打包MAUI iOS项目,处理运行时标识符(RID)、输出路径及IPA文件重命名。

  • 611 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
educationazuredevops

Works with

  • cli

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill '生成-net-6-maui-ios项目的azure-pipelines配置' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 生成 Net 6 Maui Ios项目的Azure Pipelines配置?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 生成 Net 6 Maui Ios项目的Azure Pipelines配置
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-net-6-maui-ios-azure-pipelines/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-net-6-maui-ios-azure-pipelines)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "9ed4fe4e-6be0-4273-a1d0-00b05b4c4ee8"
name: "生成.NET 6 MAUI iOS项目的Azure Pipelines配置"
description: "根据用户需求生成完整的azure-pipelines.yml文件,用于在Azure DevOps上使用.NET 6构建和打包MAUI iOS项目,处理运行时标识符(RID)、输出路径及IPA文件重命名。"
version: "0.1.0"
tags:
  - "azure-pipelines"
  - "dotnet6"
  - "maui"
  - "ios"
  - "devops"
triggers:
  - "编辑azure-pipelines.yml打包maui ios"
  - "dotnet 6 maui ios pipeline配置"
  - "azure devops build maui ios"
  - "DotNetCoreCLI publish maui ios"
  - "修改ipa文件名 azure pipeline"
---

# 生成.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
1. **环境配置**:必须使用 macOS 镜像(如 `macos-latest`)并使用 `UseDotNet@2` 任务安装 .NET 6 SDK。
2. **构建任务**:使用 `DotNetCoreCLI@2` 任务来执行 `restore`、`build` 和 `publish` 命令,而不是使用脚本任务或旧的 Xamarin 任务。
3. **发布参数**:
   - 必须在 `publish` 命令的参数中指定有效的运行时标识符(Runtime Identifier, RID),例如 `ios-arm64`(用于真机)或 `iossimulator-x64`(用于模拟器),以解决“A runtime identifier must be specified”或“The RuntimeIdentifier is invalid”的错误。
   - 必须使用 `--output` 参数指定有效的输出路径。
4. **文件重命名**:如果用户要求修改 IPA 文件名,请在 `publish` 步骤之后添加一个脚本步骤,使用 `mv` 命令重命名生成的 .ipa 文件。
5. **工件发布**:最后使用 `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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in education →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.