Skip to content

Commit 8c72ba3

Browse files
authored
[build] Update stable .NET to 9. (#9543)
In order to bump the stable version of .NET used in `Java.Interop` to .NET 9 we need to bump it here first. Originally this was going to be done with the bump to targeting .NET 10, however that [PR][0] is waiting on fix(es) from other team(s) so we'll do this bump separately to unblock `Java.Interop`. [0]: #9395
1 parent 7009522 commit 8c72ba3

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<DotNetTargetFramework>net$(DotNetTargetFrameworkVersion)</DotNetTargetFramework>
77
<DotNetAndroidTargetFramework>$(DotNetTargetFramework)-android</DotNetAndroidTargetFramework>
88
<!-- Used for bootstrap, command-line tooling, and desktop NUnit projects -->
9-
<DotNetStableTargetFramework>net8.0</DotNetStableTargetFramework>
9+
<DotNetStableTargetFramework>net9.0</DotNetStableTargetFramework>
1010
<TargetFrameworkNETStandard>netstandard2.0</TargetFrameworkNETStandard>
1111
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
1212
<BuildOutputDirectory>$(MSBuildThisFileDirectory)bin\$(Configuration)\</BuildOutputDirectory>

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ RUNTIME := $(shell which mono64 2> /dev/null && echo mono64 || echo mono)
77
SOLUTION = Xamarin.Android.sln
88
TEST_TARGETS = build-tools/scripts/RunTests.targets
99
API_LEVEL ?=
10-
PREPARE_NET_FX = net8.0
10+
PREPARE_NET_FX = net9.0
1111
PREPARE_ARGS =
1212
PREPARE_PROJECT = build-tools/xaprepare/xaprepare/xaprepare.csproj
1313
PREPARE_MSBUILD_FLAGS = $(PREPARE_MSBUILD_ARGS) $(MSBUILD_ARGS)

build-tools/automation/yaml-templates/build-linux.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ stages:
5252
# https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops#checkout-path
5353
- checkout: maui
5454

55+
- template: /build-tools/automation/yaml-templates/use-dot-net.yaml
56+
parameters:
57+
remove_dotnet: true
58+
5559
- ${{ if ne(variables['System.PullRequest.IsFork'], 'True') }}:
5660
- checkout: android-platform-support
5761
clean: true

build-tools/automation/yaml-templates/variables.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ variables:
2424
- name: NUnit.NumberOfTestWorkers
2525
value: 4
2626
- name: DotNetSdkVersion
27-
value: 8.0
27+
value: 9.0
2828
- name: DotNetSdkQuality
2929
value: GA
3030
- name: GitHub.Token
@@ -50,7 +50,7 @@ variables:
5050
- name: DotNetTargetFramework
5151
value: net9.0
5252
- name: DotNetStableTargetFramework
53-
value: net8.0
53+
value: net9.0
5454
# Workaround: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1585820
5555
- name: _WriteTelemetryProperties
5656
value: false

0 commit comments

Comments
 (0)