Skip to content

Commit eae7b29

Browse files
committed
Now targeting .NET 10
- Drops targeting for .NET 6 and .NET 8
1 parent 3a6c5c9 commit eae7b29

File tree

8 files changed

+529
-647
lines changed

8 files changed

+529
-647
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ jobs:
2828
with:
2929
# .net 4.8.x is included by default in windows-latest
3030
dotnet-version: |
31-
6.0.x
32-
7.0.x
3331
8.0.x
3432
9.0.x
33+
10.0.x
3534
3635
- name: Restore .NET tools
3736
run: dotnet tool restore

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Setup .NET
2727
uses: actions/setup-dotnet@v5
2828
with:
29-
dotnet-version: 9.0.x
29+
dotnet-version: 10.0.x
3030

3131
- name: Extract version
3232
id: extract_version

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![NuGet Version](https://img.shields.io/nuget/v/NetDuid)](https://www.nuget.org/packages/NetDuid)
55
[![GitHub Release](https://img.shields.io/github/v/release/sandialabs/NetDuid)](https://github.com/sandialabs/NetDuid/releases)
66
[![GitHub Tag](https://img.shields.io/github/v/tag/sandialabs/NetDuid)](https://github.com/sandialabs/NetDuid/tags)
7-
![Targets](https://img.shields.io/badge/.NET%20Standard%202.0%20|%20.NET%206.0%20|%20.NET%207.0%20|%20.NET%208.0%20|%20.NET%209.0-blue)
7+
![Targets](https://img.shields.io/badge/.NET%20Standard%202.0%20|%20.NET%208.0%20|%20.NET%209.0|%20.NET%2010.0-blue)
88
[![Apache 2.0 License](https://img.shields.io/github/license/sandialabs/NetDuid?logo=apache)](https://github.com/sandialabs/NetDuid/blob/main/LICENSE)
99

1010
## About the Project
@@ -40,7 +40,7 @@ This library is intended for use in various scenarios, including but not limited
4040

4141
You are most likely to be interacting with the `NetDuid.Duid` type.
4242

43-
The `Duid` type implements `IEquatable<Duid>`, `IComparable<Duid>`, `IFormattable`, `ISerializable`, and for .NET 7 and greater `IParsable<Duid>`.
43+
The `Duid` type implements `IEquatable<Duid>`, `IComparable<Duid>`, `IFormattable`, `ISerializable`, and for .NET 8 and greater `IParsable<Duid>`.
4444

4545
The library "knows" RFC 8415 ("Link-layer address plus time", "Vendor-assigned unique ID based on Enterprise Number", and "Link-layer address") and RFC 6355 ("Universally Unique Identifier (UUID)") DUIDs, but can treat any valid `byte` array (a minimum of 3 bytes, and maximum of 130 bytes per the RFCs) as a DUID. An unhandled DUID type will be treated as an "Undefined" type, but otherwise functionality is identical.
4646

@@ -145,7 +145,7 @@ This project uses [Semantic Versioning](https://semver.org/)
145145

146146
### Targeting
147147

148-
The project targets [.NET Standard 2.0](https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0), [.NET 6](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-6), [.NET 7](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-7), [.NET 8](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8), and [.NET 9](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/overview). The test project similarly targets .NET 6, .NET 7, .NET 8, .NET 9, but targets [.NET Framework 4.8](https://dotnet.microsoft.com/en-us/download/dotnet-framework/net48) for the .NET Standard 2.0 tests.
148+
The project targets [.NET Standard 2.0](https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-0), [.NET 8](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-8), [.NET 9](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/overview), and [.NET 10](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-10/overview). The test project similarly targets .NET 8, .NET 9, .NET 10, but targets [.NET Framework 4.8](https://dotnet.microsoft.com/en-us/download/dotnet-framework/net48) for the .NET Standard 2.0 tests.
149149

150150
### Commit Hook
151151

src/NetDuid.Tests/NetDuid.Tests.csproj

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net48;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
3+
<TargetFrameworks>net48;net8.0;net9.0;net10.0</TargetFrameworks>
44
<IsPackable>false</IsPackable>
55
<IsTestProject>true</IsTestProject>
66
<OutputType>Exe</OutputType>
@@ -52,29 +52,26 @@
5252
<ItemGroup>
5353
<ProjectReference Include="..\NetDuid\NetDuid.csproj" />
5454
</ItemGroup>
55-
<ItemGroup Condition="'$(TargetFramework)' == 'net48'">
56-
<Reference Include="System.Runtime.Serialization.Formatters.Soap" />
57-
</ItemGroup>
5855
<ItemGroup>
59-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
56+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
6057
<PackageReference Include="coverlet.collector" Version="6.0.4" />
61-
<PackageReference Include="System.Reflection.Metadata" Version="9.0.9" />
62-
<PackageReference Include="xunit.v3" Version="2.0.1" />
63-
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2">
58+
<PackageReference Include="System.Reflection.Metadata" Version="10.0.0" />
59+
<PackageReference Include="xunit.v3" Version="3.2.0" />
60+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
6461
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
6562
<PrivateAssets>all</PrivateAssets>
6663
</PackageReference>
6764
</ItemGroup>
6865
<ItemGroup>
69-
<PackageReference Include="Roslynator.Analyzers" Version="4.14.0">
66+
<PackageReference Include="Roslynator.Analyzers" Version="4.14.1">
7067
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
7168
<PrivateAssets>all</PrivateAssets>
7269
</PackageReference>
73-
<PackageReference Include="Roslynator.CodeAnalysis.Analyzers" Version="4.14.0">
70+
<PackageReference Include="Roslynator.CodeAnalysis.Analyzers" Version="4.14.1">
7471
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
7572
<PrivateAssets>all</PrivateAssets>
7673
</PackageReference>
77-
<PackageReference Include="Roslynator.Formatting.Analyzers" Version="4.14.0">
74+
<PackageReference Include="Roslynator.Formatting.Analyzers" Version="4.14.1">
7875
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
7976
<PrivateAssets>all</PrivateAssets>
8077
</PackageReference>

0 commit comments

Comments
 (0)