﻿steps:
- task: PowerShell@2
  displayName: 'Set NuGet Package Version'
  inputs:
    targetType: inline
    script: |
      if ("$(GitVersion.PreReleaseLabel)" -ne "") { $NuGetPackageVersion = "$(GitVersion.MajorMinorPatch)-prerelease" } else { $NuGetPackageVersion = "$(GitVersion.MajorMinorPatch)" }
      Write-Host "NuGetPackageVersion: $NuGetPackageVersion"
      Write-Host "##vso[task.setvariable variable=NuGetPackageVersion]$NuGetPackageVersion"
- task: DotNetCoreCLI@2
  displayName: 'dotnet pack'
  inputs:
    command: pack
    packagesToPack: |
      src/SFA.DAS.EmployerUsers.Api.Client/SFA.DAS.EmployerUsers.Api.Client.csproj;
      src/SFA.DAS.EmployerUsers.Api.Types/SFA.DAS.EmployerUsers.Api.Types.csproj;
      src/SFA.DAS.EmployerUsers.WebClientComponents/SFA.DAS.EmployerUsers.WebClientComponents.nuspec
    versioningScheme: byEnvVar
    versionEnvVar: NuGetPackageVersion
    packDirectory: $(build.artifactstagingdirectory)/NuGetPackages
- task: PublishBuildArtifacts@1
  displayName: 'Publish Artifact: NuGetPackages'
  inputs:
    ArtifactName: NuGetPackages
    pathtoPublish: '$(build.artifactstagingdirectory)/NuGetPackages'
﻿steps:
- task: PowerShell@2
  displayName: 'Set NuGet Package Version'
  inputs:
    targetType: inline
    script: |
      if ("$(GitVersion.PreReleaseLabel)" -ne "") { $NuGetPackageVersion = "$(GitVersion.MajorMinorPatch)-prerelease" } else { $NuGetPackageVersion = "$(GitVersion.MajorMinorPatch)" }
      Write-Host "NuGetPackageVersion: $NuGetPackageVersion"
      Write-Host "##vso[task.setvariable variable=NuGetPackageVersion]$NuGetPackageVersion"
- task: DotNetCoreCLI@2
  displayName: 'dotnet pack'
  inputs:
    command: pack
    packagesToPack: |
      src/SFA.DAS.EmployerUsers.Api.Client/SFA.DAS.EmployerUsers.Api.Client.csproj;
      src/SFA.DAS.EmployerUsers.Api.Types/SFA.DAS.EmployerUsers.Api.Types.csproj;
    versioningScheme: byEnvVar
    versionEnvVar: NuGetPackageVersion
    packDirectory: $(build.artifactstagingdirectory)/NuGetPackages
- task: NuGetCommand@2
  inputs:
    command: pack
    packagesToPack: src/SFA.DAS.EmployerUsers.WebClientComponents/SFA.DAS.EmployerUsers.WebClientComponents.csproj
    versioningScheme: byEnvVar
    versionEnvVar: NuGetPackageVersion
    packDestination: $(build.artifactstagingdirectory)/NuGetPackages
- task: PublishBuildArtifacts@1
  displayName: 'Publish Artifact: NuGetPackages'
  inputs:
    ArtifactName: NuGetPackages
    pathtoPublish: '$(build.artifactstagingdirectory)/NuGetPackages'
Split WebClientComponents out to separate task
Split WebClientComponents out to separate task
