Skip to content

Commit 4db6ed0

Browse files
committed
project: upgrade to .NET 10
Signed-off-by: leo <[email protected]>
1 parent 1133c29 commit 4db6ed0

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Setup .NET
4444
uses: actions/setup-dotnet@v4
4545
with:
46-
dotnet-version: 9.0.x
46+
dotnet-version: 10.0.x
4747
- name: Configure arm64 packages
4848
if: matrix.runtime == 'linux-arm64'
4949
run: |

.github/workflows/format-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up .NET
1919
uses: actions/setup-dotnet@v4
2020
with:
21-
dotnet-version: 9.0.x
21+
dotnet-version: 10.0.x
2222

2323
- name: Run formatting check
2424
run: dotnet format --verify-no-changes

build/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
## How to build this project manually
77

8-
1. Make sure [.NET SDK 9](https://dotnet.microsoft.com/en-us/download) is installed on your machine.
8+
1. Make sure [.NET SDK 10](https://dotnet.microsoft.com/en-us/download) is installed on your machine.
99
2. Clone this project
1010
3. Run the follow command under the project root dir
1111
```sh

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"sdk": {
3-
"version": "9.0.0",
3+
"version": "10.0.0",
44
"rollForward": "latestMajor",
55
"allowPrerelease": false
66
}
7-
}
7+
}

src/SourceGit.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<OutputType>WinExe</OutputType>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ApplicationManifest>App.manifest</ApplicationManifest>
66
<ApplicationIcon>App.ico</ApplicationIcon>
77
<Version>$([System.IO.File]::ReadAllText("$(MSBuildProjectDirectory)\\..\\VERSION"))</Version>
@@ -24,6 +24,10 @@
2424
<TrimMode>link</TrimMode>
2525
</PropertyGroup>
2626

27+
<PropertyGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">
28+
<SupportedOSPlatformVersion>13.0</SupportedOSPlatformVersion>
29+
</PropertyGroup>
30+
2731
<PropertyGroup Condition="'$(DisableUpdateDetection)' == 'true'">
2832
<DefineConstants>$(DefineConstants);DISABLE_UPDATE_DETECTION</DefineConstants>
2933
</PropertyGroup>
@@ -61,8 +65,4 @@
6165
<TrimmerRootAssembly Include="SourceGit" />
6266
<TrimmerRootAssembly Include="Avalonia.Themes.Fluent" />
6367
</ItemGroup>
64-
65-
<ItemGroup Condition="$([MSBuild]::IsOSPlatform('OSX'))">
66-
<LinkerArg Include="-mmacosx-version-min=11.0" Condition="'$(Configuration)' == 'Release'" />
67-
</ItemGroup>
6868
</Project>

0 commit comments

Comments
 (0)