Skip to content

Commit d8e5b09

Browse files
Update to .NET 10
Update to .NET 10 with .NET SDK version 10.0.100-preview.1.25120.13. Co-Authored-By: costellobot <[email protected]>
1 parent 1c6dd01 commit d8e5b09

File tree

8 files changed

+14
-11
lines changed

8 files changed

+14
-11
lines changed

.vsconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"components": [
44
"Microsoft.VisualStudio.Component.CoreEditor",
55
"Microsoft.VisualStudio.Workload.CoreEditor",
6-
"Microsoft.NetCore.Component.Runtime.9.0",
6+
"Microsoft.NetCore.Component.Runtime.10.0",
77
"Microsoft.NetCore.Component.SDK",
88
"Microsoft.VisualStudio.Component.Roslyn.Compiler",
99
"Microsoft.VisualStudio.Component.Roslyn.LanguageServices"

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<ItemGroup>
88
<PackageVersion Include="coverlet.msbuild" Version="6.0.4" />
99
<PackageVersion Include="GitHubActionsTestLogger" Version="2.4.1" />
10-
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.3" />
10+
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.0-preview.1.25120.3" />
1111
<PackageVersion Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" />
1212
<PackageVersion Include="Microsoft.Extensions.Logging" Version="8.0.1" />
1313
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />

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": "9.0.201",
3+
"version": "10.0.100-preview.1.25120.13",
44
"allowPrerelease": false,
55
"rollForward": "latestMajor"
66
}

src/Logging.XUnit.v3/MartinCostello.Logging.XUnit.v3.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<OutputType>Library</OutputType>
1010
<PackageId>MartinCostello.Logging.XUnit.v3</PackageId>
1111
<RootNamespace>MartinCostello.Logging.XUnit</RootNamespace>
12-
<TargetFrameworks>net8.0;net472</TargetFrameworks>
12+
<TargetFrameworks>net8.0;net472;net10.0</TargetFrameworks>
1313
<Title>xunit v3 Logging Extensions</Title>
1414
</PropertyGroup>
1515
<ItemGroup>
@@ -20,6 +20,9 @@
2020
<PackageReference Include="Microsoft.Extensions.Logging" VersionOverride="8.0.1" />
2121
<PackageReference Include="xunit.v3.extensibility.core" />
2222
</ItemGroup>
23+
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net10.0'))">
24+
<PackageReference Update="Microsoft.Extensions.Logging" VersionOverride="10.0.0-preview.1.25080.5" />
25+
</ItemGroup>
2326
<ItemGroup>
2427
<AssemblyAttribute Include="System.Runtime.InteropServices.GuidAttribute">
2528
<_Parameter1>ed8d1c5e-3ee7-45fe-8d1d-94257a71f02a</_Parameter1>

src/Logging.XUnit/MartinCostello.Logging.XUnit.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
<OutputType>Library</OutputType>
99
<PackageId>MartinCostello.Logging.XUnit</PackageId>
1010
<RootNamespace>MartinCostello.Logging.XUnit</RootNamespace>
11-
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
11+
<TargetFrameworks>netstandard2.0;net8.0;net10.0</TargetFrameworks>
1212
<Title>xunit Logging Extensions</Title>
1313
</PropertyGroup>
1414
<ItemGroup>
1515
<Compile Include="..\Shared\**\*.cs" Link="%(Link)" />
1616
</ItemGroup>
1717
<ItemGroup>
1818
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" PrivateAssets="All" />
19-
<PackageReference Include="Microsoft.Extensions.Logging" />
19+
<PackageReference Include="Microsoft.Extensions.Logging" VersionOverride="8.0.1" />
2020
<PackageReference Include="xunit.abstractions" />
2121
<PackageReference Include="xunit.extensibility.execution" />
2222
</ItemGroup>
23-
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
24-
<PackageReference Update="Microsoft.Extensions.Logging" VersionOverride="8.0.1" />
23+
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net10.0'))">
24+
<PackageReference Update="Microsoft.Extensions.Logging" VersionOverride="10.0.0-preview.1.25080.5" />
2525
</ItemGroup>
2626
<ItemGroup>
2727
<AssemblyAttribute Include="System.Runtime.InteropServices.GuidAttribute">

tests/Logging.XUnit.Tests/MartinCostello.Logging.XUnit.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<MSBuildTreatWarningsAsErrors>false</MSBuildTreatWarningsAsErrors>
55
<NoWarn>$(NoWarn);CA2234;SA1602</NoWarn>
66
<RootNamespace>MartinCostello.Logging.XUnit</RootNamespace>
7-
<TargetFramework>net9.0</TargetFramework>
7+
<TargetFramework>net10.0</TargetFramework>
88
</PropertyGroup>
99
<ItemGroup>
1010
<Compile Include="..\Shared\**\*.cs" Link="%(Link)" />

tests/Logging.XUnit.v3.Tests/MartinCostello.Logging.XUnit.v3.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<NoWarn>$(NoWarn);CA2234;SA1602</NoWarn>
77
<OutputType>Exe</OutputType>
88
<RootNamespace>MartinCostello.Logging.XUnit</RootNamespace>
9-
<TargetFramework>net9.0</TargetFramework>
9+
<TargetFramework>net10.0</TargetFramework>
1010
</PropertyGroup>
1111
<ItemGroup>
1212
<Compile Include="..\Shared\**\*.cs" Link="%(Link)" />

tests/SampleApp/SampleApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<IsPackable>false</IsPackable>
44
<NoWarn>$(NoWarn);CA1801;CA1822;CA1861;SA1600;SA1601</NoWarn>
5-
<TargetFramework>net9.0</TargetFramework>
5+
<TargetFramework>net10.0</TargetFramework>
66
</PropertyGroup>
77
<ItemGroup>
88
<Using Remove="Xunit" />

0 commit comments

Comments
 (0)