I'm trying to configure a CI that will produces NuGet packages as artifacts on Azure DevOps (that will be later push to my NuGet server).
For this, I'm using Builds Pipelines on Azure DevOps, the YAML version.
I have 3 projects that should build packages. I'm using NuGetCommand@2 to accomplish this task :
- 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
However, I have to duplicate this block 3 times, for each project. Is there a way to specify an array of project in packagesToPack parameter ? So far, version is the same for each package, so I don't need three different blocks...
Note : this 3 projects are all 3 NetStandard and properties for package building are stored in csproj directly