steps:

- task: PowerShell@2
  inputs:
    targetType: filePath
    filePath: build/windows/install.dependencies.ps1
    arguments: -pfxUri "$(PfxUri)"
  displayName: Install dependencies

- script: install.cmd
  workingDirectory: $(Build.SourcesDirectory)/src/Magick.Native
  displayName: Install Magick.Native

- script: build.Magick.NET.cmd Test
  workingDirectory: build/windows
  displayName: Build Magick.NET (Test)

- script: test.Magick.NET.cmd
  workingDirectory: build/windows
  displayName: Test Magick.NET

- script: build.Magick.NET.cmd Release
  workingDirectory: build/windows
  displayName: Build Magick.NET (Release)

- task: PowerShell@2
  inputs:
    targetType: filePath
    filePath: build/windows/sign.Magick.NET.ps1
    arguments: -pfxPassword "$(PfxPassword)"
  displayName: Sign Magick.NET

- task: PowerShell@2
  inputs:
    targetType: filePath
    filePath: build/windows/check.tag.ps1
  displayName: Check for tag

- task: PowerShell@2
  inputs:
    targetType: filePath
    filePath: publish/publish.ps1
    arguments: -version $(Build.BuildNumber) -destination "$(Build.StagingDirectory)" -pfxPassword "$(PfxPassword)"
  displayName: Publish Magick.NET

- task: PublishBuildArtifacts@1
  inputs:
    pathtoPublish: $(Build.StagingDirectory)
    artifactName: package
  displayName: 'Publish NuGet package'

steps:

- task: PowerShell@2
  inputs:
    targetType: filePath
    filePath: build/windows/install.dependencies.ps1
    arguments: -pfxUri '$(PfxUri)'
  displayName: Install dependencies

- script: install.cmd
  workingDirectory: $(Build.SourcesDirectory)/src/Magick.Native
  displayName: Install Magick.Native

- script: build.Magick.NET.cmd Test
  workingDirectory: build/windows
  displayName: Build Magick.NET (Test)

- script: test.Magick.NET.cmd
  workingDirectory: build/windows
  displayName: Test Magick.NET

- script: build.Magick.NET.cmd Release
  workingDirectory: build/windows
  displayName: Build Magick.NET (Release)

- task: PowerShell@2
  inputs:
    targetType: filePath
    filePath: build/windows/sign.Magick.NET.ps1
    arguments: -pfxPassword '$(PfxPassword)'
  displayName: Sign Magick.NET

- task: PowerShell@2
  inputs:
    targetType: filePath
    filePath: build/windows/check.tag.ps1
  displayName: Check for tag

- task: PowerShell@2
  inputs:
    targetType: filePath
    filePath: publish/publish.ps1
    arguments: -version $(Build.BuildNumber) -destination "$(Build.StagingDirectory)" -pfxPassword '$(PfxPassword)'
  displayName: Publish Magick.NET

- task: PublishBuildArtifacts@1
  inputs:
    pathtoPublish: $(Build.StagingDirectory)
    artifactName: package
  displayName: 'Publish NuGet package'

Use single quotes instead of double quotes to prevent issues in pull requests.
Use single quotes instead of double quotes to prevent issues in pull requests.
