title: How to install several .NET Core SDK versions on Azure Devops
body: <p>Is it possible to install multiple versions of the .NET Core SDK using <code>azure-pipelines.yml</code> on Azure DevOps? If yes, how can I do so?</p>
  
  <p>I'm trying to build a Blazor Server App using ElectronNET. On my local machine, I can run <code>electronize build /target win</code> without any problems. But when running the build on Azure DevOps, it fails with the following error:</p>
  
  <pre><code>The specified framework 'Microsoft.NETCore.App', version '2.2.0' was not found.
    - The following frameworks were found:
        3.0.0-preview7-27912-14 at [/opt/hostedtoolcache/dotnet/shared/Microsoft.NETCore.App]
  </code></pre>
  
  <p>My <code>azure-pipelines.yml</code> looks like this:</p>
  
  <pre><code>trigger:
  - master
  
  pool:
    vmImage: 'ubuntu-latest'
  
  steps:
  - task: DotNetCoreInstaller@0
    displayName: Install .NET Core 2.2 SDK
    inputs:
      packageType: 'sdk'
      version: '2.2.401'
  
  - script: |
      dotnet tool install ElectronNET.CLI -g
    displayName: 'Install global tool ElectronNET.CLI'
  
  - task: DotNetCoreInstaller@0
    displayName: Install Latest .NET Core 3.0 SDK
    inputs:
      packageType: 'sdk'
      version: '3.0.100-preview7-012821'
  
  - script: |
      cd MyProject
      electronize build /target win
    displayName: 'Build Windows app with ElectronNET'
  </code></pre>