diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 00f3c11..1110c0e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -11,12 +11,12 @@ trigger: pool: vmImage: 'windows-latest' -install: -- ps: Invoke-WebRequest -Uri 'https://dot.net/v1/dotnet-install.ps1' -UseBasicParsing -OutFile "$env:temp\dotnet-install.ps1" -- ps: $env:temp\dotnet-install.ps1 -Architecture x64 -Version '10.0.100' -InstallDir "$env:ProgramFiles\dotnet" - -before_build: - - cmd: dotnet --version +- task: UseDotNet@2 + displayName: 'Install .NET Core SDK' + inputs: + version: 10.x + performMultiLevelLookup: true + installationPath: 'C:\Program Files\dotnet` variables: buildConfiguration: 'Release'