title: Pass array as inputs to Azure DevOps YAML task
body: <p>I'm trying to configure a CI that will produce NuGet packages as artifacts on Azure DevOps (that will be later pushed to my NuGet server).</p>
  <p>For this, I'm using Builds Pipelines on Azure DevOps, the YAML version.</p>
  <p>I have 3 projects that should build packages. I'm using <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/package/nuget?view=azure-devops" rel="nofollow noreferrer">NuGetCommand@2</a> to accomplish this task :</p>
  <pre><code>- task: NuGetCommand@2
    inputs:
      command: pack
      packagesToPack: $(Build.SourcesDirectory)/src/HTS_MessageEngine.Communication/HTS_MessageEngine.Communication.csproj
      majorVersion: $(majorVersion)
      minorVersion: $(minorVersion)
      patchVersion: $(patchVersion)
      versioningScheme: byPrereleaseNumber
  </code></pre>
  <p>However, I have to duplicate this block 3 times, for each project. Is there a way to specify an array of projects in the packagesToPack parameter? So far, the version is the same for each package, so I don't need three different blocks...</p>
  <p><em>Note: these 3 projects are all 3 NetStandard and properties for package building are stored in csproj directly</em></p>