Esta página aún no está disponible en su idioma local. Estamos trabajando arduamente para agregar más versiones de idiomas. Gracias por tu apoyo.

On this page

Show all

Using YAML to Configure a Build with MSBuild

Updated on 2023-12-21 GMT+08:00
version: 2.0 # The value must be 2.0.
steps:
  BUILD:
    - msbuild:
       inputs: 
          command: |-
            nuget sources Disable -Name 'nuget.org'
            nuget sources Disable -Name 'myget'
            nuget sources Disable -Name 'huawei'
            nuget sources add -Name 'huaweicloud' -Source 'http://mirrors-devcloud.rnd.huawei.com/repository/nuget/v3/index.json'
            nuget restore 
            msbuild /p:OutputPath=../buildResult/Release/bin 
            powershell -Command Compress-Archive -Path ./buildResult/Release/bin/* -DestinationPath ./archive.zip

Parameter

Type

Description

Mandatory

Default Value

command

string

Execute commands.

Yes

None

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback