Skip to content

Commit

Permalink
Merge pull request #235 from shinji-san/feature-DotNet9Support
Browse files Browse the repository at this point in the history
Add .NET 9 Support

Resolves: #235
  • Loading branch information
shinji-san authored Nov 17, 2024
2 parents 138e56f + fca5e02 commit 2211917
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 9 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,14 @@ jobs:
with:
dotnet-version: 8.0.404

- name: Setup .NET 9
uses: actions/[email protected]
with:
dotnet-version: 9.0.100

- name: .NET Core SxS
run: |
rsync -a ${DOTNET_ROOT/8.0.404}/* $DOTNET_ROOT/
rsync -a ${DOTNET_ROOT/8.0.404/9.0.100}/* $DOTNET_ROOT/
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/dotnetall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
with:
dotnet-version: 8.0.404

- name: Setup .NET 9
uses: actions/[email protected]
with:
dotnet-version: 9.0.100

- name: Restore
run: dotnet restore SecretSharingDotNet.sln

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publishing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
with:
dotnet-version: 8.0.404

- name: Setup .NET 9
uses: actions/[email protected]
with:
dotnet-version: 9.0.100

- name: Decrypt large secret
run: ./.github/secrets/decrypt_publisher_snk.sh
env:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]
### Added
- Added .NET 9.0 support
- Added use-case interfaces `IMakeSharesUseCase` and `IReconstructUseCase` to the `SecretSharingDotNet` project.
- Added a guide to the `README.md` file on how to use the use-case interfaces with dependency injection.

Expand Down
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ An C# implementation of Shamir's Secret Sharing.
</thead>
<tbody>
<tr>
<td rowspan=8><a href ="https://github.com/shinji-san/SecretSharingDotNet/actions?query=workflow%3A%22SecretSharingDotNet+%28All+supported+TFM%29%22" target="_blank"><img src="https://github.com/shinji-san/SecretSharingDotNet/workflows/SecretSharingDotNet%20(All%20supported%20TFM)/badge.svg" alt="Build status"/></a></td>
<td rowspan=9><a href ="https://github.com/shinji-san/SecretSharingDotNet/actions?query=workflow%3A%22SecretSharingDotNet+%28All+supported+TFM%29%22" target="_blank"><img src="https://github.com/shinji-san/SecretSharingDotNet/workflows/SecretSharingDotNet%20(All%20supported%20TFM)/badge.svg" alt="Build status"/></a></td>
<td rowspan=9><code>SecretSharingDotNet.sln</code></td>
<td rowspan=8>SDK</td>
<td rowspan=9>SDK</td>
<td>Standard 2.0</td>
</tr>
<tr>
Expand All @@ -39,6 +39,9 @@ An C# implementation of Shamir's Secret Sharing.
<tr>
<td>.NET 8</td>
</tr>
<tr>
<td>.NET 9</td>
</tr>
</tbody>
</table>

Expand All @@ -55,9 +58,9 @@ An C# implementation of Shamir's Secret Sharing.
</thead>
<tbody>
<tr>
<td rowspan=8><a href="https://github.com/shinji-san/SecretSharingDotNet/actions?query=workflow%3A%22SecretSharingDotNet+NuGet%22" target="_blank"><img src="https://github.com/shinji-san/SecretSharingDotNet/workflows/SecretSharingDotNet%20NuGet/badge.svg?branch=v0.11.0" alt="SecretSharingDotNet NuGet"/></a></td>
<td rowspan=8><a href="https://badge.fury.io/nu/SecretSharingDotNet" target="_blank"><img src="https://badge.fury.io/nu/SecretSharingDotNet.svg" alt="NuGet Version 0.11.0"/></a></td>
<td rowspan=8><a href="https://github.com/shinji-san/SecretSharingDotNet/tree/v0.11.0" target="_blank"><img src="https://img.shields.io/badge/SecretSharingDotNet-0.11.0-green.svg?logo=github&logoColor=959da5&color=2ebb4e&labelColor=2b3137" alt="Tag"/></a></td>
<td rowspan=9><a href="https://github.com/shinji-san/SecretSharingDotNet/actions?query=workflow%3A%22SecretSharingDotNet+NuGet%22" target="_blank"><img src="https://github.com/shinji-san/SecretSharingDotNet/workflows/SecretSharingDotNet%20NuGet/badge.svg?branch=v0.11.0" alt="SecretSharingDotNet NuGet"/></a></td>
<td rowspan=9><a href="https://badge.fury.io/nu/SecretSharingDotNet" target="_blank"><img src="https://badge.fury.io/nu/SecretSharingDotNet.svg" alt="NuGet Version 0.11.0"/></a></td>
<td rowspan=9><a href="https://github.com/shinji-san/SecretSharingDotNet/tree/v0.11.0" target="_blank"><img src="https://img.shields.io/badge/SecretSharingDotNet-0.11.0-green.svg?logo=github&logoColor=959da5&color=2ebb4e&labelColor=2b3137" alt="Tag"/></a></td>
<td>Standard 2.0</td>
</tr>
<tr>
Expand All @@ -81,6 +84,9 @@ An C# implementation of Shamir's Secret Sharing.
<tr>
<td>.NET 8</td>
</tr>
<tr>
<td>.NET 9</td>
</tr>
</tbody>
</table>

Expand Down Expand Up @@ -435,7 +441,7 @@ You can find the Mono installation instructions [here](https://www.mono-project.

The .NET Frameworks 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 and 4.8.1 can be found [here](https://dotnet.microsoft.com/download/dotnet-framework).

The .NET SDK 8.0 can be found [here](https://dotnet.microsoft.com/download/dotnet).
The .NET SDKs 8.0 and 9.0 can be found [here](https://dotnet.microsoft.com/download/dotnet).

## Build and test the solution
You can use the `SecretSharingDotNet.sln` solution file with the `dotnet` command to build the [SecretSharingDotNet](#secretsharingdotnet) library in the `Debug` or `Release` configuration. You can also use the `dotnet` command to start the unit tests.
Expand Down
2 changes: 1 addition & 1 deletion src/SecretSharingDotNet.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<RootNamespace>SecretSharingDotNet</RootNamespace>
<OutputType>Library</OutputType>
<LangVersion>latest</LangVersion>
<TargetFrameworks>netstandard2.0;netstandard2.1;net462;net47;net471;net472;net48;net481;net8.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netstandard2.1;net462;net47;net471;net472;net48;net481;net8.0;net9.0</TargetFrameworks>
<AssemblyOriginatorKeyFile>SecretSharingDotNet.snk</AssemblyOriginatorKeyFile>
<SignAssembly>True</SignAssembly>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand Down
2 changes: 1 addition & 1 deletion tests/SecretSharingDotNetTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<LangVersion>latest</LangVersion>
<TargetFrameworks>net462;net47;net471;net472;net48;net481;net8.0</TargetFrameworks>
<TargetFrameworks>net462;net47;net471;net472;net48;net481;net8.0;net9.0</TargetFrameworks>
<AssemblyOriginatorKeyFile>..\src\SecretSharingDotNet.snk</AssemblyOriginatorKeyFile>
<SignAssembly>True</SignAssembly>
<IsPackable>false</IsPackable>
Expand Down

0 comments on commit 2211917

Please sign in to comment.