Skip to content

Commit 3b8df47

Browse files
CopilotIeuanWalker
andcommitted
Upgrade project to .NET 10 - update all target frameworks, package references, and GitHub Actions workflows
Co-authored-by: IeuanWalker <6544051+IeuanWalker@users.noreply.github.com>
1 parent 561107b commit 3b8df47

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/Release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66

77
env:
8-
NET_VERSION: 9.*.*
8+
NET_VERSION: 10.*.*
99
PROJECT_PATH: 'Scr/IeuanWalker.Maui.StateButton.csproj'
1010
NUGET_PATH: './**/IeuanWalker.Maui.StateButton.${{ github.event.release.tag_name }}.nupkg'
1111

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- cron: '0 0 1 */3 *' # Every 3 months
1010

1111
env:
12-
NET_VERSION: 9.*.*
12+
NET_VERSION: 10.*.*
1313
PROJECT_PATH: 'Scr/IeuanWalker.Maui.StateButton.csproj'
1414
NUGET_PATH: './**/IeuanWalker.Maui.StateButton.1.0.0.nupkg'
1515

Demo/App.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net9.0-android;net9.0-ios;</TargetFrameworks>
3+
<TargetFrameworks>net10.0-android;net10.0-ios;</TargetFrameworks>
44
<OutputType>Exe</OutputType>
55
<RootNamespace>App</RootNamespace>
66
<UseMaui>true</UseMaui>
@@ -40,7 +40,7 @@
4040
<ItemGroup>
4141
<PackageReference Include="CommunityToolkit.Maui" Version="9.1.1" />
4242
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.3.2" />
43-
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.10" />
43+
<PackageReference Include="Microsoft.Maui.Controls" Version="10.0.10" />
4444
</ItemGroup>
4545
<ItemGroup>
4646
<ProjectReference Include="..\Scr\IeuanWalker.Maui.StateButton.csproj" />

Scr/IeuanWalker.Maui.StateButton.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net9.0;net9.0-android;net9.0-ios;</TargetFrameworks>
3+
<TargetFrameworks>net10.0;net10.0-android;net10.0-ios;</TargetFrameworks>
44
<UseMaui>true</UseMaui>
55
<SingleProject>true</SingleProject>
66
<ImplicitUsings>enable</ImplicitUsings>
@@ -48,11 +48,11 @@
4848
</Generator>
4949
</MauiXaml>
5050
</ItemGroup>
51-
<ItemGroup Condition="$(TargetFramework.StartsWith('net9.0-ios')) != true">
51+
<ItemGroup Condition="$(TargetFramework.StartsWith('net10.0-ios')) != true">
5252
<Compile Remove="**\**\*.ios.cs" />
5353
<None Include="**\**\*.ios.cs" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
5454
</ItemGroup>
55-
<ItemGroup Condition="$(TargetFramework.StartsWith('MonoAndroid')) != true AND $(TargetFramework.StartsWith('net9.0-android')) != true">
55+
<ItemGroup Condition="$(TargetFramework.StartsWith('MonoAndroid')) != true AND $(TargetFramework.StartsWith('net10.0-android')) != true">
5656
<Compile Remove="**\**\*.android.cs" />
5757
<None Include="**\**\*.android.cs" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
5858
</ItemGroup>
@@ -65,6 +65,6 @@
6565
<PrivateAssets>all</PrivateAssets>
6666
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
6767
</PackageReference>
68-
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.10" />
68+
<PackageReference Include="Microsoft.Maui.Controls" Version="10.0.10" />
6969
</ItemGroup>
7070
</Project>

0 commit comments

Comments
 (0)