diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml
index 80f9a6e..24d3659 100644
--- a/.github/workflows/build-and-release.yml
+++ b/.github/workflows/build-and-release.yml
@@ -16,13 +16,22 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
- dotnet-version: 6.0.x
+ dotnet-version: '7.0.x'
+ include-prerelease: true
- name: Extend PackageVersion with build number in Directory.Build.props
shell: pwsh
run: |
Write-Host New version uses build number $env:GITHUB_RUN_NUMBER
$replacement="`$2.$($env:GITHUB_RUN_NUMBER)"
(Get-Content Directory.Build.props) -replace '()(\d+\.\d+\.\d+)(\.\d+)()', $replacement | Out-File Directory.Build.props
+ - name: Extend PackageVersion with beta tag in Directory.Build.props
+ if: github.ref != 'refs/heads/main'
+ shell: pwsh
+ run: |
+ Write-Host Adding beta tag
+ $date = Get-Date -Format yyyyMMddHHmmss
+ $replacement="`$2-beta$($date)"
+ (Get-Content Directory.Build.props) -replace '()(\d+\.\d+\.\d+.\d+)()', $replacement | Out-File Directory.Build.props
- name: Restore dependencies
run: dotnet restore
- name: Build
@@ -37,7 +46,6 @@ jobs:
name: packages
path: '**/*.nupkg'
- name: Push to nuget.org
- if: github.ref == 'refs/heads/main'
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_API_KEY}
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
diff --git a/Directory.Build.props b/Directory.Build.props
index b3f3079..c06abe4 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -2,11 +2,11 @@
$(MSBuildThisFileDirectory)prodot-Default.ruleset
- 6.0.0
- 6.0.0.0
+ 7.0.0
+ 7.0.0.0
net6.0
true
- 10.0
+ preview
enable
enable
bin\docs\$(MSBuildProjectName).xml
diff --git a/Prodot.Patterns.Cqrs.Abstractions/Prodot.Patterns.Cqrs.Abstractions.csproj b/Prodot.Patterns.Cqrs.Abstractions/Prodot.Patterns.Cqrs.Abstractions.csproj
index 450d9d3..f168464 100644
--- a/Prodot.Patterns.Cqrs.Abstractions/Prodot.Patterns.Cqrs.Abstractions.csproj
+++ b/Prodot.Patterns.Cqrs.Abstractions/Prodot.Patterns.Cqrs.Abstractions.csproj
@@ -9,4 +9,15 @@
prodot GmbH
+
+
+ all
+ runtime; build; native; contentfiles; analyzers
+
+
+ all
+ runtime; build; native; contentfiles; analyzers
+
+
+
diff --git a/Prodot.Patterns.Cqrs.EfCore.Abstractions/Prodot.Patterns.Cqrs.EfCore.Abstractions.csproj b/Prodot.Patterns.Cqrs.EfCore.Abstractions/Prodot.Patterns.Cqrs.EfCore.Abstractions.csproj
index 8328f87..58e67b4 100644
--- a/Prodot.Patterns.Cqrs.EfCore.Abstractions/Prodot.Patterns.Cqrs.EfCore.Abstractions.csproj
+++ b/Prodot.Patterns.Cqrs.EfCore.Abstractions/Prodot.Patterns.Cqrs.EfCore.Abstractions.csproj
@@ -16,5 +16,16 @@
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers
+
+
+ all
+ runtime; build; native; contentfiles; analyzers
+
+
diff --git a/Prodot.Patterns.Cqrs.EfCore/CountQueryHandlerBase.cs b/Prodot.Patterns.Cqrs.EfCore/CountQueryHandlerBase.cs
index 9037e36..39b65f9 100644
--- a/Prodot.Patterns.Cqrs.EfCore/CountQueryHandlerBase.cs
+++ b/Prodot.Patterns.Cqrs.EfCore/CountQueryHandlerBase.cs
@@ -1,11 +1,11 @@
namespace Prodot.Patterns.Cqrs.EfCore;
-public abstract class CountQueryHandlerBase : IQueryHandler
+public abstract class CountQueryHandlerBase : IQueryHandler
where TQuery : CountQuery
where TModel : ModelBase
where TIdentifier : Identifier, new()
where TContext : DbContext
- where TEntity : class, IIdentifiableEntity
+ where TEntity : class, IIdentifiableEntity
{
private readonly IDbContextFactory _contextFactory;
diff --git a/Prodot.Patterns.Cqrs.EfCore/CreateQueryHandlerBase.cs b/Prodot.Patterns.Cqrs.EfCore/CreateQueryHandlerBase.cs
index 5d040ce..5c71279 100644
--- a/Prodot.Patterns.Cqrs.EfCore/CreateQueryHandlerBase.cs
+++ b/Prodot.Patterns.Cqrs.EfCore/CreateQueryHandlerBase.cs
@@ -1,11 +1,11 @@
namespace Prodot.Patterns.Cqrs.EfCore;
-public abstract class CreateQueryHandlerBase : IQueryHandler
+public abstract class CreateQueryHandlerBase : IQueryHandler
where TQuery : CreateQuery
where TModel : ModelBase
where TIdentifier : Identifier, new()
where TContext : DbContext
- where TEntity : class, IIdentifiableEntity
+ where TEntity : class, IIdentifiableEntity
{
private readonly IDbContextFactory _contextFactory;
private readonly IMapper _mapper;
@@ -32,7 +32,7 @@ public async Task