Skip to content

Commit a108942

Browse files
committed
Updates target framework to net10.0
Updates the target framework for the Foundatio projects to .NET 10.0. This ensures that the projects are using the latest .NET runtime. Also, updates the MinVer package to the latest version.
1 parent 4b9a809 commit a108942

10 files changed

Lines changed: 10 additions & 16 deletions

File tree

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"request": "launch",
1111
"preLaunchTask": "build",
1212
// If you have changed target frameworks, make sure to update the program path.
13-
"program": "${workspaceFolder}/samples/Foundatio.HostingSample/bin/Debug/net8.0/Foundatio.HostingSample.dll",
13+
"program": "${workspaceFolder}/samples/Foundatio.HostingSample/bin/Debug/net10.0/Foundatio.HostingSample.dll",
1414
"args": [ ],
1515
"cwd": "${workspaceFolder}/samples/Foundatio.HostingSample",
1616
// For more information about the 'console' field, see https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md#console-terminal-window

benchmarks/Foundatio.Benchmarks.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net8.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
44
<OutputType>Exe</OutputType>
55
</PropertyGroup>
66
<PropertyGroup>

build/common.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<ItemGroup>
3939
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
4040
<PackageReference Include="AsyncFixer" Version="2.1.0" PrivateAssets="All" />
41-
<PackageReference Include="MinVer" Version="6.1.0" PrivateAssets="All" />
41+
<PackageReference Include="MinVer" Version="7.0.0" PrivateAssets="All" />
4242
</ItemGroup>
4343

4444
<ItemGroup>

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "8.0.100",
3+
"version": "10.0.100",
44
"rollForward": "latestMajor",
55
"allowPrerelease": false
66
}

samples/Foundatio.AppHost/Foundatio.AppHost.csproj

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

55
<PropertyGroup>
66
<OutputType>Exe</OutputType>
7-
<TargetFramework>net8.0</TargetFramework>
7+
<TargetFramework>net10.0</TargetFramework>
88
<ImplicitUsings>enable</ImplicitUsings>
99
<Nullable>enable</Nullable>
1010
<UserSecretsId>96cfcbc9-36fb-452f-9b99-0165197e1978</UserSecretsId>

samples/Foundatio.HostingSample/Foundatio.HostingSample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<IsPackable>False</IsPackable>
66
<EnableRedis>false</EnableRedis>
77
<DefineConstants Condition="'$(EnableRedis)' == 'true'">REDIS</DefineConstants>

src/Foundatio.Extensions.Hosting/Foundatio.Extensions.Hosting.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
4-
<TargetFrameworks>net8.0</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
55
</PropertyGroup>
66
<ItemGroup>
77
<FrameworkReference Include="Microsoft.AspNetCore.App" />

src/Foundatio.TestHarness/Foundatio.TestHarness.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net8.0</TargetFrameworks>
3+
<TargetFrameworks>net10.0</TargetFrameworks>
44
<IsPackable>true</IsPackable>
55
<IsTestProject>false</IsTestProject>
66
</PropertyGroup>

src/Foundatio/Foundatio.csproj

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@
22
<ItemGroup>
33
<!-- Can be removed when lowest TFM is net 8 -->
44
<PackageReference Include="Microsoft.Bcl.TimeProvider" Version="8.0" />
5-
<!-- Can be removed when lowest TFM is net 6 -->
6-
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="8.0" />
7-
<!-- Needed for all TFMs -->
5+
86
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0" />
97
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0" />
108
</ItemGroup>
11-
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
12-
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="8.0" />
13-
<PackageReference Include="System.Text.Json" Version="8.0.5" />
14-
</ItemGroup>
159
</Project>

tests/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<Import Project="..\build\common.props" />
33
<PropertyGroup>
4-
<TargetFrameworks>net8.0</TargetFrameworks>
4+
<TargetFrameworks>net10.0</TargetFrameworks>
55
<OutputType>Exe</OutputType>
66
<IsPackable>False</IsPackable>
77
<NoWarn>$(NoWarn);CS1591;NU1701</NoWarn>

0 commit comments

Comments
 (0)