parameters: DotNetVersion: '8.0.301' UnoCheck_Version: '1.23.0' steps: # Required until .NET 6 installs properly on Windows using UseDotnet # using preview builds #- powershell: | # $ProgressPreference = 'SilentlyContinue' # Invoke-WebRequest -Uri "https://dot.net/v1/dotnet-install.ps1" -OutFile dotnet-install.ps1 # & .\dotnet-install.ps1 -Version ${{ parameters.DotNetVersion }} -InstallDir "$env:ProgramFiles\dotnet\" -Verbose # & dotnet --list-sdks # displayName: Install .NET ${{ parameters.DotNetVersion }} # errorActionPreference: stop # retryCountOnTaskFailure: 3 # condition: eq(variables['Agent.OS'], 'Windows_NT') - task: UseDotNet@2 displayName: 'Use .NET Core SDK ${{ parameters.DotNetVersion }}' retryCountOnTaskFailure: 3 inputs: packageType: sdk version: ${{ parameters.DotNetVersion }} includePreviewVersions: true - powershell: | & dotnet tool update --global uno.check --version ${{ parameters.UnoCheck_Version }} --add-source https://api.nuget.org/v3/index.json & uno-check -v --ci --non-interactive --fix --skip xcode --skip gtk3 --skip vswin --skip androidemulator --skip androidsdk --skip vsmac displayName: Install .NET Workloads errorActionPreference: continue ignoreLASTEXITCODE: true retryCountOnTaskFailure: 3 condition: eq(variables['Agent.OS'], 'Windows_NT')