Skip to content

Commit 17f8b79

Browse files
authored
[ci] Update .NET version installed for MAUI tests (#8995)
The MAUI integration job started failing recently seemingly due to some of the arcade integration changes they are making: C:\Users\cloudtest\.nuget\packages\microsoft.dotnet.arcade.sdk\9.0.0-beta.24274.1\tools\RepositoryValidation.proj(33,5): error MSB4018: The "Microsoft.DotNet.Arcade.Sdk.GetLicenseFilePath" task failed unexpectedly. C:\Users\cloudtest\.nuget\packages\microsoft.dotnet.arcade.sdk\9.0.0-beta.24274.1\tools\RepositoryValidation.proj(33,5): error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified. C:\Users\cloudtest\.nuget\packages\microsoft.dotnet.arcade.sdk\9.0.0-beta.24274.1\tools\RepositoryValidation.proj(33,5): error MSB4018: File name: 'System.Runtime, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' Attempt to fix this by installing a .NET 9 preview that will be used to run their build tasks that provision a local .NET install. The `installLegacyDotNet` setup-test-environment parameter did not seem to be in use anywhere and has also been removed.
1 parent 0803452 commit 17f8b79

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

build-tools/automation/azure-pipelines.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ extends:
342342
parameters:
343343
xaSourcePath: $(Build.SourcesDirectory)/xamarin-android
344344
androidSdkPlatforms: $(DefaultTestSdkPlatforms)
345+
dotnetVersion: 9.0
346+
dotnetQuality: preview
345347

346348
- task: NuGetAuthenticate@1
347349
displayName: authenticate with azure artifacts

build-tools/automation/yaml-templates/setup-test-environment.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ parameters:
33
xaSourcePath: $(System.DefaultWorkingDirectory)
44
jdkTestFolder: $(JAVA_HOME_17_X64)
55
remove_dotnet: false
6+
dotnetVersion: $(DotNetSdkVersion)
7+
dotnetQuality: $(DotNetSdkQuality)
68
installTestSlicer: false
79
installApkDiff: true
8-
installLegacyDotNet: false
910
installLegacyXamarinAndroid: false
1011
updateMono: false
1112
androidSdkPlatforms: $(DefaultTestSdkPlatforms)
@@ -33,16 +34,12 @@ steps:
3334
displayName: set JI_JAVA_HOME to ${{ parameters.jdkTestFolder }}
3435
condition: and(succeeded(), eq(variables['agent.os'], 'Windows_NT'))
3536

36-
# Install .NET 6 for legacy tests
37-
- ${{ if eq(parameters.installLegacyDotNet, true) }}:
38-
- template: /build-tools/automation/yaml-templates/use-dot-net.yaml
39-
parameters:
40-
version: 6.0
41-
quality: GA
42-
remove_dotnet: ${{ parameters.remove_dotnet }}
43-
4437
# Install latest .NET
4538
- template: /build-tools/automation/yaml-templates/use-dot-net.yaml
39+
parameters:
40+
version: ${{ parameters.dotnetVersion }}
41+
quality: ${{ parameters.dotnetQuality }}
42+
remove_dotnet: ${{ parameters.remove_dotnet }}
4643

4744
- task: DotNetCoreCLI@2
4845
displayName: shut down existing build daemons

0 commit comments

Comments
 (0)