Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Update .NET version installed for MAUI tests #8995

Merged
merged 3 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ extends:
parameters:
xaSourcePath: $(Build.SourcesDirectory)/xamarin-android
androidSdkPlatforms: $(DefaultTestSdkPlatforms)
dotnetVersion: 9.0
dotnetQuality: preview

- task: NuGetAuthenticate@1
displayName: authenticate with azure artifacts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ parameters:
xaSourcePath: $(System.DefaultWorkingDirectory)
jdkTestFolder: $(JAVA_HOME_17_X64)
remove_dotnet: false
dotnetVersion: $(DotNetSdkVersion)
dotnetQuality: $(DotNetSdkQuality)
installTestSlicer: false
installApkDiff: true
installLegacyDotNet: false
installLegacyXamarinAndroid: false
updateMono: false
androidSdkPlatforms: $(DefaultTestSdkPlatforms)
Expand Down Expand Up @@ -33,16 +34,12 @@ steps:
displayName: set JI_JAVA_HOME to ${{ parameters.jdkTestFolder }}
condition: and(succeeded(), eq(variables['agent.os'], 'Windows_NT'))

# Install .NET 6 for legacy tests
- ${{ if eq(parameters.installLegacyDotNet, true) }}:
- template: /build-tools/automation/yaml-templates/use-dot-net.yaml
parameters:
version: 6.0
quality: GA
remove_dotnet: ${{ parameters.remove_dotnet }}

# Install latest .NET
- template: /build-tools/automation/yaml-templates/use-dot-net.yaml
parameters:
version: ${{ parameters.dotnetVersion }}
quality: ${{ parameters.dotnetQuality }}
remove_dotnet: ${{ parameters.remove_dotnet }}

- task: DotNetCoreCLI@2
displayName: shut down existing build daemons
Expand Down
Loading