Updated on 2026-01-08 GMT+08:00

Using Mono for Build

In this action, you build a project with MSBuild and .NET on Mono Linux for x86 and Arm.

Graphical Build

Add Build with Mono, when configuring build actions.

The parameters are described in the following table.

Parameter

Description

Action Name

Name of a build action. It can be customized.

Tool Version

Select a tool version.

Commands

Configure the Mono commands. You can also use default commands. If you have special build requirements, enter your custom build script in the text box.

Code-based Build

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
version: 2.0 # The value must be 2.0.
steps:
  BUILD:
    - mono:
        inputs:
            command: |
                nuget sources Disable -Name 'nuget.org' 
                nuget sources add -Name 'xxcloud' -Source 'https://repo.xxcloud.com/repository/nuget/v3/index.json' 
                nuget restore
                msbuild /p:OutputPath=../buildResult/Release/bin
                zip -rq ./archive.zip ./buildResult/Release/bin/*

Parameter

Type

Description

Mandatory

Default Value

command

String

Commands to be run.

Yes

None