Skip to content

Commit bb77ff8

Browse files
committed
Update to .NET 10.0 in workflows and project
Bump the target framework in FFmpegInstaller.csproj to net10.0-windows and update GitHub Actions workflows to fetch and use .NET 10.0 LTS SDK and runtime. This ensures the project and CI use the latest .NET LTS version.
1 parent a1e51bf commit bb77ff8

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ jobs:
3232
id: dotnet_version
3333
shell: pwsh
3434
run: |
35-
# Fetch latest .NET 8.0 LTS version
35+
# Fetch latest .NET 10.0 LTS version
3636
try {
37-
$response = Invoke-RestMethod -Uri "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/8.0/releases.json"
37+
$response = Invoke-RestMethod -Uri "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/10.0/releases.json"
3838
$latestRelease = $response.'latest-release'
3939
$latestSdk = $response.'latest-sdk'
40-
Write-Host "Latest .NET 8.0 SDK: $latestSdk"
41-
Write-Host "Latest .NET 8.0 Runtime: $latestRelease"
40+
Write-Host "Latest .NET 10.0 SDK: $latestSdk"
41+
Write-Host "Latest .NET 10.0 Runtime: $latestRelease"
4242
echo "SDK_VERSION=$latestSdk" >> $env:GITHUB_OUTPUT
4343
echo "RUNTIME_VERSION=$latestRelease" >> $env:GITHUB_OUTPUT
4444
} catch {
45-
Write-Host "Using fallback version: 8.0.x"
46-
echo "SDK_VERSION=8.0.x" >> $env:GITHUB_OUTPUT
47-
echo "RUNTIME_VERSION=8.0.x" >> $env:GITHUB_OUTPUT
45+
Write-Host "Using fallback version: 10.0.x"
46+
echo "SDK_VERSION=10.0.x" >> $env:GITHUB_OUTPUT
47+
echo "RUNTIME_VERSION=10.0.x" >> $env:GITHUB_OUTPUT
4848
}
4949
5050
- name: Setup .NET

.github/workflows/build-test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ jobs:
2828
id: dotnet_version
2929
shell: pwsh
3030
run: |
31-
# Fetch latest .NET 8.0 LTS version
31+
# Fetch latest .NET 10.0 LTS version
3232
try {
33-
$response = Invoke-RestMethod -Uri "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/8.0/releases.json"
33+
$response = Invoke-RestMethod -Uri "https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/10.0/releases.json"
3434
$latestRelease = $response.'latest-release'
3535
$latestSdk = $response.'latest-sdk'
36-
Write-Host "Latest .NET 8.0 SDK: $latestSdk"
37-
Write-Host "Latest .NET 8.0 Runtime: $latestRelease"
36+
Write-Host "Latest .NET 10.0 SDK: $latestSdk"
37+
Write-Host "Latest .NET 10.0 Runtime: $latestRelease"
3838
echo "SDK_VERSION=$latestSdk" >> $env:GITHUB_OUTPUT
3939
} catch {
40-
Write-Host "Using fallback version: 8.0.x"
41-
echo "SDK_VERSION=8.0.x" >> $env:GITHUB_OUTPUT
40+
Write-Host "Using fallback version: 10.0.x"
41+
echo "SDK_VERSION=10.0.x" >> $env:GITHUB_OUTPUT
4242
}
4343
4444
- name: Setup .NET

FFmpegInstaller.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>WinExe</OutputType>
5-
<TargetFramework>net8.0-windows</TargetFramework>
5+
<TargetFramework>net10.0-windows</TargetFramework>
66
<UseWindowsForms>true</UseWindowsForms>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<Nullable>disable</Nullable>

0 commit comments

Comments
 (0)