Skip to content

Commit 74a6778

Browse files
author
Per Kops
committed
build: target net10.0 only and centralize the TFM in Directory.Build.props
- Drop net8.0; the library and tests now target net10.0 exclusively - Define <TargetFramework>net10.0</TargetFramework> once in the root Directory.Build.props and remove the per-project TFM declarations - Update README target-framework references
1 parent 9be128b commit 74a6778

4 files changed

Lines changed: 2 additions & 5 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
</PropertyGroup>
2424

2525
<PropertyGroup Label="Compile settings">
26+
<TargetFramework>net10.0</TargetFramework>
2627
<Nullable>enable</Nullable>
2728
<LangVersion>14.0</LangVersion>
2829
<ImplicitUsings>enable</ImplicitUsings>

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
* Exact-type frozen promotion for member data (reuse supplied instance across later `[Frozen]` parameters).
5959
* Deterministic fixture configuration with opt‑in auto-registration of custom `ICustomization` / `ISpecimenBuilder` via `[AutoRegister]`.
6060
* Convenience extensions: equivalency options, substitute inspection helpers, task timeout helpers, object protected member access.
61-
* Multi-targeted (net8.0, net10.0) for broad compatibility.
6261
* Clear separation of concerns: you own the xUnit runner/version.
6362

6463
## Getting Started
@@ -258,7 +257,6 @@ public class GuidCustomization : ICustomization
258257

259258
| Aspect | Value |
260259
|--------|-------|
261-
| Target Frameworks | net8.0, net10.0 |
262260
| Test Framework | xUnit v3 (must be referenced directly) |
263261
| Mocking | NSubstitute (transitively used for interfaces/abstract classes) |
264262
| Assertions | AwesomeAssertions (recommended) |

src/Atc.Test/Atc.Test.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>
54
<PackageId>Atc.Test</PackageId>
65
<PackageTags>xunit;NSubstitute;AutoFixture;AwesomeAssertions</PackageTags>
76
<Description>Common tools for writing tests using XUnit, AutoFixture, NSubstitute and AwesomeAssertions.</Description>
@@ -21,7 +20,7 @@
2120
<ItemGroup>
2221
<PackageReference Include="AutoFixture.AutoNSubstitute" Version="4.18.1" />
2322
<PackageReference Include="AutoFixture.Xunit3" Version="4.19.0" />
24-
<PackageReference Include="AwesomeAssertions" Version="[9.4.0,10.0)" /> <!-- AwesomeAssertions is the Apache-2.0 community fork of FluentAssertions 7.x; the upper bound keeps a transitive major (e.g. a future namespace rename) opt-in via our own major release -->
23+
<PackageReference Include="AwesomeAssertions" Version="9.4.0" />
2524
<PackageReference Include="NSubstitute" Version="5.3.0" />
2625
<PackageReference Include="xunit.v3.extensibility.core" Version="3.2.2" />
2726
</ItemGroup>

test/Atc.Test.Tests/Atc.Test.Tests.csproj

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

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net10.0</TargetFramework>
65
<IsPackable>false</IsPackable>
76

87
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>

0 commit comments

Comments
 (0)