Skip to content

Commit

Permalink
Update to .NET 10
Browse files Browse the repository at this point in the history
Update to .NET 10 with .NET SDK version 10.0.100-preview.1.25120.13.
  • Loading branch information
costellobot committed Feb 25, 2025
1 parent 0b21793 commit d975b12
Show file tree
Hide file tree
Showing 11 changed files with 214 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .vsconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"components": [
"Microsoft.VisualStudio.Component.CoreEditor",
"Microsoft.VisualStudio.Workload.CoreEditor",
"Microsoft.NetCore.Component.Runtime.9.0",
"Microsoft.NetCore.Component.Runtime.10.0",
"Microsoft.NetCore.Component.SDK",
"Microsoft.VisualStudio.Component.Roslyn.Compiler",
"Microsoft.VisualStudio.Component.Roslyn.LanguageServices"
Expand Down
8 changes: 4 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
<PackageVersion Include="MartinCostello.Logging.XUnit.v3" Version="0.5.1" />
<PackageVersion Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" />
<PackageVersion Include="Microsoft.Data.SqlClient" Version="5.2.2" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.2" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="9.0.2" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.0-preview.1.25081.1" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="10.0.0-preview.1.25080.5" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.2" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="9.0.2" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="10.0.0-preview.1.25080.5" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.2" />
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="9.0.0" />
<PackageVersion Include="Microsoft.Extensions.Logging.Console" Version="10.0.0-preview.1.25080.5" />
<PackageVersion Include="Microsoft.Extensions.TimeProvider.Testing" Version="9.2.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
<PackageVersion Include="Microsoft.Win32.Registry" Version="4.7.0" />
Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "9.0.200",
"version": "10.0.100-preview.1.25120.13",
"allowPrerelease": false,
"rollForward": "latestMajor"
}
Expand Down
2 changes: 1 addition & 1 deletion samples/TodoApp.Tests/TodoApp.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<IsPackable>false</IsPackable>
<NoWarn>$(NoWarn);CA1303;CA1707;CA2007;SA1600</NoWarn>
<RootNamespace>TodoApp</RootNamespace>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/TodoApp/TodoApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<IsPackable>false</IsPackable>
<NoWarn>$(NoWarn);CA1062;CA1303;CA1822;CA2007;CA2227;SA1516;SA1600</NoWarn>
<RootNamespace>TodoApp</RootNamespace>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Humanizer" />
Expand Down
2 changes: 1 addition & 1 deletion src/SqlLocalDb/Interop/LocalDbInstanceApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ internal sealed class LocalDbInstanceApi : IDisposable
/// <summary>
/// Synchronization object to protect loading the native library and its functions. This field is read-only.
/// </summary>
private readonly object _syncRoot = new();
private readonly Lock _syncRoot = new();

Check failure on line 51 in src/SqlLocalDb/Interop/LocalDbInstanceApi.cs

View workflow job for this annotation

GitHub Actions / windows

The type or namespace name 'Lock' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 51 in src/SqlLocalDb/Interop/LocalDbInstanceApi.cs

View workflow job for this annotation

GitHub Actions / windows

The type or namespace name 'Lock' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 51 in src/SqlLocalDb/Interop/LocalDbInstanceApi.cs

View workflow job for this annotation

GitHub Actions / windows

The type or namespace name 'Lock' could not be found (are you missing a using directive or an assembly reference?)

/// <summary>
/// Whether the instance has been disposed of.
Expand Down
14 changes: 7 additions & 7 deletions src/SqlLocalDb/MartinCostello.SqlLocalDb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<PackageValidationBaselineVersion>3.4.0</PackageValidationBaselineVersion>
<RootNamespace>MartinCostello.SqlLocalDb</RootNamespace>
<Summary>$(Description)</Summary>
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net6.0;net8.0;net10.0</TargetFrameworks>
<Title>SQL LocalDB Wrapper</Title>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
Expand All @@ -35,20 +35,20 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Data.SqlClient" VersionOverride="2.1.7" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" VersionOverride="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" VersionOverride="2.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" VersionOverride="10.0.0-preview.1.25080.5" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" VersionOverride="10.0.0-preview.1.25080.5" />
</ItemGroup>
<ItemGroup Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
<PackageReference Include="Microsoft.Win32.Registry" />
</ItemGroup>
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">
<PackageReference Update="Microsoft.Extensions.DependencyInjection.Abstractions" VersionOverride="6.0.0" />
<PackageReference Update="Microsoft.Extensions.Logging.Abstractions" VersionOverride="6.0.0" />
<PackageReference Update="Microsoft.Extensions.DependencyInjection.Abstractions" VersionOverride="10.0.0-preview.1.25080.5" />
<PackageReference Update="Microsoft.Extensions.Logging.Abstractions" VersionOverride="10.0.0-preview.1.25080.5" />
</ItemGroup>
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
<PackageReference Update="Microsoft.Data.SqlClient" VersionOverride="5.1.5" />
<PackageReference Update="Microsoft.Extensions.DependencyInjection.Abstractions" VersionOverride="8.0.0" />
<PackageReference Update="Microsoft.Extensions.Logging.Abstractions" VersionOverride="8.0.0" />
<PackageReference Update="Microsoft.Extensions.DependencyInjection.Abstractions" VersionOverride="10.0.0-preview.1.25080.5" />
<PackageReference Update="Microsoft.Extensions.Logging.Abstractions" VersionOverride="10.0.0-preview.1.25080.5" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" PrivateAssets="All" />
Expand Down
1 change: 1 addition & 0 deletions src/SqlLocalDb/PublicAPI/net10.0/PublicAPI.Shipped.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#nullable enable
Loading

0 comments on commit d975b12

Please sign in to comment.