parameters: signSteps: [] steps: - task: DotNetCoreCLI@2 inputs: command: custom custom: tool arguments: install --tool-path . nbgv displayName: Install NBGV tool condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false)) - script: nbgv cloud displayName: Set Version condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false)) - task: DotNetCoreInstaller@0 inputs: version: '2.1.400-preview-009063' - task: DotNetCoreCLI@2 inputs: command: pack packagesToPack: .\crypto\src\crypto.csproj packDirectory: $(Build.ArtifactStagingDirectory)\Packages configuration: $(BuildConfiguration) arguments: /p:PackageId="Portable.BouncyCastle" displayName: Build - task: DotNetCoreCLI@2 inputs: command: test projects: .\crypto\test\crypto.test.csproj arguments: -c $(BuildConfiguration) --collect:"Code Coverage" -s $(System.DefaultWorkingDirectory)\CodeCoverage.runsettings /p:DebugType=portable displayName: Run Tests - ${{ parameters.signSteps }} - task: PublishBuildArtifacts@1 displayName: Publish Package Artifacts inputs: pathToPublish: $(Build.ArtifactStagingDirectory)\Packages artifactType: container artifactName: Packages condition: eq(variables['system.pullrequest.isfork'], false)