Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
uses: actions/setup-dotnet@v6.1.0
with:
dotnet-version: |
8.0.x
10.0.x
11.0.x

Expand Down
15 changes: 11 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,24 @@
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
</PropertyGroup>
<!-- Per-TFM versions: match these packages to the consumer's runtime, so a net10.0 build is not
lifted to Microsoft.Extensions.* 11.x. Any project (single- or multi-targeted) that builds for
net11.0 resolves the 11.x version; every other target framework gets 10.x.
<!-- Per-TFM versions: match these packages to the consumer's runtime. Some 10.x packages do not support
net8.0 consumers at all, and the rest would lift Microsoft.Extensions.* to 10.x on net8.0 (or to
11.x on net10.0). Any project (single- or multi-targeted) that builds for net8.0 or net11.0
resolves the matching 8.x/11.x version; every other target framework gets 10.x.
Versions are literal (not MSBuild properties) so Renovate can update them; renovate.json keeps each
group on its major version. -->
<ItemGroup Condition="'$(TargetFramework)' != 'net11.0'">
<ItemGroup Condition="'$(TargetFramework)' != 'net8.0' and '$(TargetFramework)' != 'net11.0'">
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.15" />
<PackageVersion Include="Microsoft.Extensions.Http" Version="10.0.15" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="10.0.15" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.15" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.33" />
<PackageVersion Include="Microsoft.Extensions.Http" Version="8.0.1" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="8.0.1" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.3" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net11.0'">
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="11.0.0" />
<PackageVersion Include="Microsoft.Extensions.Http" Version="11.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion eng/Library.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net10.0;net11.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net8.0;net10.0;net11.0</TargetFrameworks>

<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

Expand Down
11 changes: 11 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@
],
"allowedVersions": "<18.12.0"
},
{
"description": "Per-TFM versions in Directory.Packages.props: keep the net8.0 entries on 8.x.",
"matchPackageNames": [
"Microsoft.AspNetCore.Mvc.Testing",
"Microsoft.Extensions.Http",
"Microsoft.Extensions.Logging",
"Microsoft.Extensions.Logging.Abstractions"
],
"matchCurrentVersion": "/^8\\./",
"allowedVersions": "<9.0.0"
},
{
"description": "Per-TFM versions in Directory.Packages.props: keep the net10.0/default entries on 10.x; the net11.0 entries are uncapped.",
"matchPackageNames": [
Expand Down
2 changes: 1 addition & 1 deletion src/TUnit.AspNetCore.Core/TUnit.AspNetCore.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<PropertyGroup>
<!-- ASP.NET Core MVC Testing only supports .NET 8.0+ -->
<TargetFrameworks>net10.0;net11.0</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0;net11.0</TargetFrameworks>
<RootNamespace>TUnit.AspNetCore</RootNamespace>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/TUnit.AspNetCore/TUnit.AspNetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<PropertyGroup>
<!-- ASP.NET Core MVC Testing only supports .NET 8.0+ -->
<TargetFrameworks>net10.0;net11.0</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0;net11.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/TUnit.Aspire.Core/TUnit.Aspire.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="..\..\eng\Library.props" />

<PropertyGroup>
<TargetFrameworks>net10.0;net11.0</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0;net11.0</TargetFrameworks>
<RootNamespace>TUnit.Aspire</RootNamespace>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/TUnit.Aspire/TUnit.Aspire.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="..\..\eng\Library.props" />

<PropertyGroup>
<TargetFrameworks>net10.0;net11.0</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0;net11.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/TUnit.Logging.Microsoft/TUnit.Logging.Microsoft.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="..\..\eng\Library.props" />

<PropertyGroup>
<TargetFrameworks>net10.0;net11.0</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0;net11.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/TUnit.Mocks.Http/TUnit.Mocks.Http.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="..\..\eng\Library.props" />

<PropertyGroup>
<TargetFrameworks>net10.0;net11.0</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0;net11.0</TargetFrameworks>
<Description>HttpClient mocking helpers for TUnit.Mocks. Provides MockHttpHandler with fluent request matching and response configuration.</Description>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/TUnit.Mocks.Logging/TUnit.Mocks.Logging.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="..\..\eng\Library.props" />

<PropertyGroup>
<TargetFrameworks>net10.0;net11.0</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0;net11.0</TargetFrameworks>
<Description>ILogger verification helpers for TUnit.Mocks. Enables fluent verification of log calls without dealing with the complex Log&lt;TState&gt;() signature.</Description>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/TUnit.OpenTelemetry/TUnit.OpenTelemetry.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Import Project="..\..\eng\Library.props" />

<PropertyGroup>
<TargetFrameworks>net10.0;net11.0</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0;net11.0</TargetFrameworks>
<Description>Auto-wires an OpenTelemetry TracerProvider for TUnit test processes. Install to get distributed tracing with zero configuration.</Description>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ protected override ModuleConfiguration Configure() => ModuleConfiguration.Create
.AssertExists();

// Test AOT publishing
foreach (var framework in new[] { "net10.0", "net11.0" })
foreach (var framework in new[] { "net8.0", "net10.0", "net11.0" })
{
var result = await context.SubModule<CommandResult>($"AOT-{framework}", async () =>
{
Expand Down
4 changes: 3 additions & 1 deletion tools/TUnit.Pipeline/Modules/TestNugetPackageModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ protected override IEnumerable<string> TestableFrameworks
{
yield return "net10.0";

// See ModernFrameworks: only Linux covers net11.0.
// See ModernFrameworks: only Linux covers net11.0. net8.0 is the oldest packaged
// modern target, so it is covered there too.
if (IsLinux)
{
yield return "net11.0";
yield return "net8.0";
}

if (IsWindows)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net10.0;net11.0;net462;net472;net48;net481</TargetFrameworks>
<TargetFrameworks>net6.0;net8.0;net10.0;net11.0;net462;net472;net48;net481</TargetFrameworks>
<LangVersion>latest</LangVersion>
<IsLibraryTestProject>true</IsLibraryTestProject>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net10.0;net11.0;net462;net472;net48;net481</TargetFrameworks>
<TargetFrameworks>net6.0;net8.0;net10.0;net11.0;net462;net472;net48;net481</TargetFrameworks>
<LangVersion>latest</LangVersion>
<IsLibraryTestProject>true</IsLibraryTestProject>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net10.0;net11.0;net462;net472;net48;net481</TargetFrameworks>
<TargetFrameworks>net8.0;net10.0;net11.0;net462;net472;net48;net481</TargetFrameworks>
<LangVersion>latest</LangVersion>
<IsLibraryTestProject>true</IsLibraryTestProject>
<ImplicitUsings>enable</ImplicitUsings>
Expand Down
Loading