Skip to content

Commit 81bed19

Browse files
Update to .NET 10
1 parent 26c5ae4 commit 81bed19

5 files changed

Lines changed: 43 additions & 27 deletions

File tree

.github/dependabot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,16 @@ updates:
99
directory: "/"
1010
schedule:
1111
interval: "daily"
12+
- package-ecosystem: "dotnet-sdk"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"
16+
ignore:
17+
- dependency-name: "*"
18+
update-types:
19+
- "version-update:semver-patch"
20+
- "version-update:semver-minor"
21+
- package-ecosystem: "github-actions"
22+
directory: "/"
23+
schedule:
24+
interval: "weekly"

.github/workflows/build.yml

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build Projects
22

3+
env:
4+
XcodeVersion: 26.3
5+
36
on:
47
push:
58
branches:
@@ -15,10 +18,10 @@ jobs:
1518
steps:
1619
- uses: actions/checkout@v4
1720

18-
- name: Setup .NET v9.0
21+
- name: Setup .NET v10.0
1922
uses: actions/setup-dotnet@v4
2023
with:
21-
dotnet-version: '9.0.x'
24+
dotnet-version: '10.0.x'
2225

2326
- name: Install .NET MAUI Workload
2427
run: |
@@ -32,18 +35,18 @@ jobs:
3235
MobileProjectDirectory=`dirname $MobileProject`
3336
echo $MobileProjectDirectory
3437
35-
dotnet build $MobileProjectDirectory -f:net9.0-android -c Release
38+
dotnet build $MobileProjectDirectory -f:net10.0-android -c Release
3639
3740
iOS:
3841
runs-on: macos-15
3942

4043
steps:
4144
- uses: actions/checkout@v4
4245

43-
- name: Setup .NET v9.0
46+
- name: Setup .NET v10.0
4447
uses: actions/setup-dotnet@v4
4548
with:
46-
dotnet-version: '9.0.x'
49+
dotnet-version: '10.0.x'
4750

4851
- name: Install .NET MAUI Workload
4952
run: |
@@ -52,7 +55,7 @@ jobs:
5255
- name: Install Xcode
5356
uses: maxim-lobanov/setup-xcode@v1
5457
with:
55-
xcode-version: latest-stable
58+
xcode-version: ${{ env.XcodeVersion }}
5659

5760
- name: Build iOS App
5861
run: |
@@ -62,18 +65,18 @@ jobs:
6265
MobileProjectDirectory=`dirname $MobileProject`
6366
echo $MobileProjectDirectory
6467
65-
dotnet build $MobileProjectDirectory -f:net9.0-ios -c Release
68+
dotnet build $MobileProjectDirectory -f:net10.0-ios -c Release
6669
6770
MacCatalyst:
6871
runs-on: macos-15
6972

7073
steps:
7174
- uses: actions/checkout@v4
7275

73-
- name: Setup .NET v9.0
76+
- name: Setup .NET v10.0
7477
uses: actions/setup-dotnet@v4
7578
with:
76-
dotnet-version: '9.0.x'
79+
dotnet-version: '10.0.x'
7780

7881
- name: Install .NET MAUI Workload
7982
run: |
@@ -82,7 +85,7 @@ jobs:
8285
- name: Install Xcode
8386
uses: maxim-lobanov/setup-xcode@v1
8487
with:
85-
xcode-version: latest-stable
88+
xcode-version: ${{ env.XcodeVersion }}
8689

8790
- name: Build macOS App
8891
run: |
@@ -92,7 +95,7 @@ jobs:
9295
MobileProjectDirectory=`dirname $MobileProject`
9396
echo $MobileProjectDirectory
9497
95-
dotnet build $MobileProjectDirectory -f:net9.0-maccatalyst -c Release
98+
dotnet build $MobileProjectDirectory -f:net10.0-maccatalyst -c Release
9699
97100
Windows:
98101
runs-on: windows-latest
@@ -105,29 +108,29 @@ jobs:
105108
distribution: 'microsoft'
106109
java-version: '17'
107110

108-
- name: Setup .NET v9.0
111+
- name: Setup .NET v10.0
109112
uses: actions/setup-dotnet@v4
110113
with:
111-
dotnet-version: '9.0.x'
114+
dotnet-version: '10.0.x'
112115

113116
- name: Install .NET MAUI Workload
114117
run: |
115118
dotnet workload install maui
116119
117120
- name: Build Windows App
118121
run: |
119-
dotnet build ./samples/GitStatus.Mobile/ -c Release -f net9.0-windows10.0.19041.0
122+
dotnet build ./samples/GitStatus.Mobile/ -c Release -f net10.0-windows10.0.19041.0
120123
121124
API:
122125
runs-on: macos-latest
123126

124127
steps:
125128
- uses: actions/checkout@v4
126129

127-
- name: Setup .NET v9.0
130+
- name: Setup .NET v10.0
128131
uses: actions/setup-dotnet@v4
129132
with:
130-
dotnet-version: '9.0.x'
133+
dotnet-version: '10.0.x'
131134

132135
- name: Build API App
133136
run: |
@@ -145,10 +148,10 @@ jobs:
145148
steps:
146149
- uses: actions/checkout@v4
147150

148-
- name: Setup .NET v9.0
151+
- name: Setup .NET v10.0
149152
uses: actions/setup-dotnet@v4
150153
with:
151-
dotnet-version: '9.0.x'
154+
dotnet-version: '10.0.x'
152155

153156
- name: Build Console App
154157
run: |
@@ -166,10 +169,10 @@ jobs:
166169
steps:
167170
- uses: actions/checkout@v4
168171

169-
- name: Setup .NET v9.0
172+
- name: Setup .NET v10.0
170173
uses: actions/setup-dotnet@v4
171174
with:
172-
dotnet-version: '9.0.x'
175+
dotnet-version: '10.0.x'
173176

174177
- name: Build Web App
175178
run: |
@@ -187,10 +190,10 @@ jobs:
187190
steps:
188191
- uses: actions/checkout@v4
189192

190-
- name: Setup .NET v9.0
193+
- name: Setup .NET v10.0
191194
uses: actions/setup-dotnet@v4
192195
with:
193-
dotnet-version: '9.0.x'
196+
dotnet-version: '10.0.x'
194197

195198

196199
- name: Build Web App

.github/workflows/unittests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
uses: actions/setup-dotnet@v4
2323
with:
2424
dotnet-version: |
25+
10.0.x
2526
9.0.x
2627
8.0.x
2728
7.0.x

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<LangVersion>preview</LangVersion>
77
<Deterministic>true</Deterministic>
88
<ImplicitUsings>enable</ImplicitUsings>
9-
<LatestSupportedTFM>net9.0</LatestSupportedTFM>
9+
<LatestSupportedTFM>net10.0</LatestSupportedTFM>
1010
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
1111
<ProduceReferenceAssembly>true</ProduceReferenceAssembly>
1212
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
1313
<GenerateErrorForMissingTargetingPacks>false</GenerateErrorForMissingTargetingPacks>
1414

1515
<!-- MAUI Specific -->
16-
<MauiPackageVersion>9.0.10</MauiPackageVersion>
16+
<MauiPackageVersion>10.0.51</MauiPackageVersion>
1717
<MauiStrictXamlCompilation>true</MauiStrictXamlCompilation>
1818
<SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences>
1919
<MauiEnableXamlCBindingWithSourceCompilation>true</MauiEnableXamlCBindingWithSourceCompilation>

global.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"sdk": {
3-
"version": "9.0.100-rc.2.24474.11",
4-
"rollForward": "latestFeature",
5-
"allowPrerelease": true
3+
"version": "10.0.100",
4+
"rollForward": "latestMajor"
65
}
76
}

0 commit comments

Comments
 (0)