Multiline string in Azure Pipelines

后端 未结 3 1503
轮回少年
轮回少年 2020-12-21 07:35

Can I use a multiline YAML string in Azure Pipelines?

Using the ASP.NET Core (.NET Framework) template I tried multilining the msbuildArgs but that didn

3条回答
  •  無奈伤痛
    2020-12-21 07:39

    You can just put ' in the start and the end of the msbuildArgs:

    - task: VSBuild@1
      displayName: 'Build solution **\*.sln'
      inputs:
        vsVersion: latest
        msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package 
        /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true'
    

提交回复
热议问题