pool:
  name: Azure Pipelines
  demands:
  - msbuild
  - visualstudio
  - vstest

jobs:
- job: Build and Test
  parameters:
    solution: StyleCopAnalyzers.sln
  variables:
    BuildPlatform: AnyCPU
  strategy:
    matrix:
      Debug:
        BuildConfiguration: Debug
      Release:
        BuildConfiguration: Release
  steps:
  - task: NuGetToolInstaller@0
    displayName: 'Use NuGet 4.4.1'
    inputs:
      versionSpec: 4.4.1

  - task: NuGetCommand@2
    displayName: 'NuGet restore'
    inputs:
      restoreSolution: '$(Parameters.solution)'

  - task: VSBuild@1
    displayName: 'Build solution StyleCopAnalyzers.sln'
    inputs:
      solution: '$(Parameters.solution)'
      platform: '$(BuildPlatform)'
      configuration: '$(BuildConfiguration)'

pool:
  name: Azure Pipelines
  demands:
  - msbuild
  - visualstudio
  - vstest

jobs:
- job: Build and Test
  variables:
    BuildSolution: StyleCopAnalyzers.sln
    BuildPlatform: AnyCPU
  strategy:
    matrix:
      Debug:
        BuildConfiguration: Debug
      Release:
        BuildConfiguration: Release
  steps:
  - task: NuGetToolInstaller@0
    displayName: 'Use NuGet 4.4.1'
    inputs:
      versionSpec: 4.4.1

  - task: NuGetCommand@2
    displayName: 'NuGet restore'
    inputs:
      restoreSolution: '$(BuildSolution)'

  - task: VSBuild@1
    displayName: 'Build solution StyleCopAnalyzers.sln'
    inputs:
      solution: '$(BuildSolution)'
      platform: '$(BuildPlatform)'
      configuration: '$(BuildConfiguration)'

Use a 'BuildSolution' variable instead of 'Parameters.solution'
Use a 'BuildSolution' variable instead of 'Parameters.solution'

The default template had $(Parameters.solution) but I could not figure
out how to set it, so changing to a variable instead?
