Skip to content
Open
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
17 changes: 15 additions & 2 deletions .github/workflows/github-actions-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: 10.0.x
dotnet-version: 11.0.x

- name: Restore dependencies
run: dotnet restore PosInformatique.Foundations.slnx
run: dotnet restore PosInformatique.Foundations.slnx --locked-mode

- name: Build solution
run: |
Expand Down Expand Up @@ -69,6 +69,19 @@ jobs:
--report-trx \
--results-directory ./TestResults \
--framework net10.0

- name: Run tests (.NET 11.0)
run: |
dotnet test \
--solution PosInformatique.Foundations.slnx \
--configuration Release \
--no-build \
--coverage \
--coverage-output-format cobertura \
--coverage-settings CodeCoverage.runsettings \
--report-trx \
--results-directory ./TestResults \
--framework net11.0

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/github-actions-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
type: string
description: The version of the library
required: true
default: 1.5.0
default: 1.6.0
VersionSuffix:
type: string
description: The version suffix of the library (for example rc.1)
Expand All @@ -26,12 +26,13 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: 10.0.x
dotnet-version: 11.0.x

- name: Build all the NuGet packages
run: |
dotnet pack PosInformatique.Foundations.slnx \
--configuration Release \
--property:RestoreLockedMode=true \
--property:VersionPrefix=${{ github.event.inputs.VersionPrefix }} \
--property:VersionSuffix=${{ github.event.inputs.VersionSuffix }} \
--output ./artifacts
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## Changelog

### 1.6.0

- Added support of .NET 11.0 for all the packages.

#### PosInformatique.Foundations.EmailAddresses
- EmailAddresses now uses the vendored MimeKit 5.0.0 source code internally for e-mail address parsing and validation.

### 1.5.0

#### PosInformatique.Foundations.Linq.Expressions
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<ImplicitUsings>enable</ImplicitUsings>

<!-- Disable the StyleCop 'XML comment analysis is disabled due to project configuration' warning. -->
<NoWarn>$(NoWarn);SA0001;NU1903</NoWarn>
<NoWarn>$(NoWarn);SA0001</NoWarn>

<!-- Enforce .editorconfig style on build -->
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
Expand Down
18 changes: 11 additions & 7 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<DotNetVersion Condition="'$(TargetFramework)' == 'net8.0'">8.0.0</DotNetVersion>
<DotNetVersion Condition="'$(TargetFramework)' == 'net9.0'">9.0.0</DotNetVersion>
<DotNetVersion Condition="'$(TargetFramework)' == 'net10.0'">10.0.0</DotNetVersion>
<DotNetVersion Condition="'$(TargetFramework)' == 'net11.0'">11.0.0</DotNetVersion>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="AwesomeAssertions" Version="9.0.0" />
Expand All @@ -21,6 +22,8 @@
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="$(DotNetVersion)" Condition="'$(TargetFramework)' != 'net8.0'" />
<PackageVersion Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.25" Condition="'$(TargetFramework)' == 'net8.0'" />
<PackageVersion Include="Microsoft.Extensions.Azure" Version="1.13.1" />
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="$(DotNetVersion)" Condition="'$(TargetFramework)' != 'net8.0'" />
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" Condition="'$(TargetFramework)' == 'net8.0'" />
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="$(DotNetVersion)" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="$(DotNetVersion)" Condition="'$(TargetFramework)' != 'net8.0'" />
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" Condition="'$(TargetFramework)' == 'net8.0'" />
Expand All @@ -31,18 +34,19 @@
<PackageVersion Include="Microsoft.Extensions.Options" Version="$(DotNetVersion)" />
<PackageVersion Include="Microsoft.Graph" Version="6.0.3" />
<PackageVersion Include="Microsoft.Testing.Extensions.CodeCoverage" Version="18.12.0" />
<PackageVersion Include="Microsoft.Testing.Extensions.TrxReport" Version="2.5.2" />
<PackageVersion Include="Microsoft.Testing.Extensions.TrxReport" Version="2.5.3" />
<PackageVersion Include="Moq" Version="4.21.0" />
<PackageVersion Include="PosInformatique.AwesomeAssertions.Json" Version="1.0.0" />
<PackageVersion Include="PosInformatique.Moq.Analyzers" Version="2.1.0" />
<PackageVersion Include="PosInformatique.Moq.Analyzers" Version="2.2.0" />
<PackageVersion Include="Scriban" Version="7.2.2" />
<PackageVersion Include="SonarAnalyzer.CSharp" Version="10.35.0.4138" />
<PackageVersion Include="SonarAnalyzer.CSharp" Version="10.36.0.15337" />
<PackageVersion Include="System.Security.Cryptography.Pkcs" Version="8.0.2" Condition="'$(TargetFramework)' == 'net8.0'" />
<PackageVersion Include="System.Security.Cryptography.Pkcs" Version="9.0.21" Condition="'$(TargetFramework)' == 'net9.0'" />
<PackageVersion Include="System.Security.Cryptography.Pkcs" Version="10.0.13" Condition="'$(TargetFramework)' == 'net10.0'" />
<PackageVersion Include="StyleCop.Analyzers" Version="1.3.177-beta" />
<PackageVersion Include="xunit.analyzers" Version="2.2.0" />
<PackageVersion Include="xunit.v3.assert" Version="4.0.2" />
<PackageVersion Include="xunit.v3.core.mtp-v2" Version="4.0.2" />
<PackageVersion Include="System.Security.Cryptography.Pkcs" Version="$(DotNetVersion)" Condition="'$(TargetFramework)' == 'net11.0'" />
<PackageVersion Include="StyleCop.Analyzers" Version="1.3.180" />
<PackageVersion Include="xunit.analyzers" Version="2.3.0" />
<PackageVersion Include="xunit.v3.assert" Version="4.0.3" />
<PackageVersion Include="xunit.v3.core.mtp-v2" Version="4.0.3" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "10.0.201",
"version": "11.0.100",
"rollForward": "latestFeature"
},
"test": {
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />

<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0;net11.0</TargetFrameworks>
<Nullable>enable</Nullable>
<IsAotCompatible>true</IsAotCompatible>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading
Loading