Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update with support for .Net 9.0 #69

Merged
merged 1 commit into from
Nov 21, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x

- name: Restore dependencies
run: dotnet restore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x

- name: Restore dependencies
run: dotnet restore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x

- name: Install dependencies
run: dotnet restore
Expand Down
78 changes: 39 additions & 39 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<Project>
<PropertyGroup>
<DotnetLatestLtsVersion>net8.0</DotnetLatestLtsVersion>
<DotnetSupportedLtsVersions>net6.0;net8.0</DotnetSupportedLtsVersions>
<SupportedDotnetVersions>net6.0;net8.0</SupportedDotnetVersions>
<LibraryTargetFrameworks>netstandard2.0;$(SupportedDotnetVersions)</LibraryTargetFrameworks>
<AspNetCoreTargetFrameworks>$(SupportedDotnetVersions)</AspNetCoreTargetFrameworks>
<TestTargetFrameworks>$(SupportedDotnetVersions)</TestTargetFrameworks>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<Nullable>enable</Nullable>
<LangVersion>9.0</LangVersion>
</PropertyGroup>
<PropertyGroup>
<DotnetLatestLtsVersion>8.0</DotnetLatestLtsVersion>
<SupportedDotnetVersions>net8.0;net9.0</SupportedDotnetVersions>
<LibraryTargetFrameworks>netstandard2.0;$(SupportedDotnetVersions)</LibraryTargetFrameworks>
<AspNetCoreTargetFrameworks>$(SupportedDotnetVersions)</AspNetCoreTargetFrameworks>
<TestTargetFrameworks>$(SupportedDotnetVersions)</TestTargetFrameworks>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<Nullable>enable</Nullable>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

<PropertyGroup Label="SystemDependencyVersions">
<!-- Use 6.0.x assemblies as the minimum for dependencies also for netstandard2.0 -->
<SystemDependencyVersionWildcard>6.0.*</SystemDependencyVersionWildcard>
<SystemDependencyVersionWildcard Condition="'$(TargetFramework)' == 'net8.0'">8.0.*</SystemDependencyVersionWildcard>
</PropertyGroup>
<PropertyGroup Label="SystemDependencyVersions">
<!-- Use 8.0.x assemblies as the minimum for dependencies also for netstandard2.0 -->
<SystemDependencyVersionWildcard>8.0.*</SystemDependencyVersionWildcard>
<SystemDependencyVersionWildcard Condition="'$(TargetFramework)' == 'net8.0'">8.0.*</SystemDependencyVersionWildcard>
<SystemDependencyVersionWildcard Condition="'$(TargetFramework)' == 'net9.0'">9.0.*</SystemDependencyVersionWildcard>
</PropertyGroup>

<PropertyGroup>
<Authors>Unify Square (a Unisys company)</Authors>
<Product>NSign</Product>
<Copyright>Copyright © Unify Square (a Unisys company)</Copyright>
<PackageIcon>icon.png</PackageIcon>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>Embedded</DebugType>
<EmbedAllSources>True</EmbedAllSources>
<Features>strict</Features>
</PropertyGroup>
<PropertyGroup>
<Authors>Unify Square (a Unisys company)</Authors>
<Product>NSign</Product>
<Copyright>Copyright © Unify Square (a Unisys company)</Copyright>
<PackageIcon>icon.png</PackageIcon>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>Embedded</DebugType>
<EmbedAllSources>True</EmbedAllSources>
<Features>strict</Features>
</PropertyGroup>

<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild>True</ContinuousIntegrationBuild>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<RestoreLockedMode>true</RestoreLockedMode>
</PropertyGroup>
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild>True</ContinuousIntegrationBuild>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<RestoreLockedMode>true</RestoreLockedMode>
</PropertyGroup>

<ItemGroup Label="NuSpec" Condition="$(IsPackable) == 'true'">
<None Include="..\..\icon.png" Pack="true" PackagePath="\" Visible="false" />
<None Include="README.md" Pack="true" PackagePath="\"/>
</ItemGroup>
</Project>
<ItemGroup Label="NuSpec" Condition="$(IsPackable) == 'true'">
<None Include="..\..\icon.png" Pack="true" PackagePath="\" Visible="false" />
<None Include="README.md" Pack="true" PackagePath="\"/>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ response messages for a client to verify on receipt.
Below are some usage examples of the `NSign.*` libraries. Additional sample code can also be found under
[examples/](examples/).

### Validate signed requests in AspNetCore Server (.Net 6.0, 8.0)
### Validate signed requests in AspNetCore Server (.Net 8.0 and 9.0)

The following excerpt of an ASP.NET Core's `Startup` class can be used to verify signatures on requests sent to `/webhooks`
endpoints (and endpoints starting with `/webhooks/`). It also makes sure that signatures include the following request
Expand Down
4 changes: 2 additions & 2 deletions examples/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
<Project>
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
<PropertyGroup>
<TargetFramework>$(DotnetLatestLtsVersion)</TargetFramework>
<TargetFramework>net$(DotnetLatestLtsVersion)</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>

<!-- Override the LangVersion inherited from the root Directory.Build.props -->
<LangVersion></LangVersion>
</PropertyGroup>

<PropertyGroup Label="SystemDependencyVersions">
<SystemDependencyVersionWildcard>8.0.*</SystemDependencyVersionWildcard>
<SystemDependencyVersionWildcard>$(DotnetLatestLtsVersion).*</SystemDependencyVersionWildcard>
</PropertyGroup>
</Project>
Loading
Loading