diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b3cb3ef..1889a51 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -24,11 +24,11 @@ jobs:
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7
with:
- versionSpec: "5.6.x"
+ versionSpec: "5.8.x"
- name: Setup .NET Core
- uses: actions/setup-dotnet@v1
+ uses: actions/setup-dotnet@v2
with:
- dotnet-version: "5.0.x"
+ dotnet-version: "8.0.x"
- name: Install dependencies
run: dotnet restore src
- name: Use GitVersion
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f56a716..73103fb 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -19,11 +19,11 @@ jobs:
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7
with:
- versionSpec: "5.6.x"
+ versionSpec: "5.8.x"
- name: Setup .NET Core
- uses: actions/setup-dotnet@v1
+ uses: actions/setup-dotnet@v2
with:
- dotnet-version: "5.0.x"
+ dotnet-version: "8.0.x"
- name: Install dependencies
run: dotnet restore src
- name: Use GitVersion
diff --git a/GitVersion.yml b/GitVersion.yml
index 5cb6811..1e8a51a 100644
--- a/GitVersion.yml
+++ b/GitVersion.yml
@@ -1,4 +1,4 @@
-next-version: 1.0.0
+next-version: 2.0.0
mode: Mainline
major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
diff --git a/src/content/api/src/LittleBlocks.Template.Client/LittleBlocks.Template.Client.csproj b/src/content/api/src/LittleBlocks.Template.Client/LittleBlocks.Template.Client.csproj
index 17be3b5..d799278 100644
--- a/src/content/api/src/LittleBlocks.Template.Client/LittleBlocks.Template.Client.csproj
+++ b/src/content/api/src/LittleBlocks.Template.Client/LittleBlocks.Template.Client.csproj
@@ -3,11 +3,11 @@
true
default
- net6.0;netstandard2.0;netstandard2.1
+ net8.0
-
+
diff --git a/src/content/api/src/LittleBlocks.Template.Common/LittleBlocks.Template.Common.csproj b/src/content/api/src/LittleBlocks.Template.Common/LittleBlocks.Template.Common.csproj
index 667ad15..b7c7104 100644
--- a/src/content/api/src/LittleBlocks.Template.Common/LittleBlocks.Template.Common.csproj
+++ b/src/content/api/src/LittleBlocks.Template.Common/LittleBlocks.Template.Common.csproj
@@ -1,7 +1,7 @@
- net6.0;netstandard2.0;netstandard2.1
+ net8.0
true
default
diff --git a/src/content/api/src/LittleBlocks.Template.Core.UnitTests/LittleBlocks.Template.Core.UnitTests.csproj b/src/content/api/src/LittleBlocks.Template.Core.UnitTests/LittleBlocks.Template.Core.UnitTests.csproj
index 842b0e2..4593ef7 100644
--- a/src/content/api/src/LittleBlocks.Template.Core.UnitTests/LittleBlocks.Template.Core.UnitTests.csproj
+++ b/src/content/api/src/LittleBlocks.Template.Core.UnitTests/LittleBlocks.Template.Core.UnitTests.csproj
@@ -1,16 +1,16 @@
- net6.0
+ net8.0
default
-
-
-
-
-
+
+
+
+
+
all
runtime; build; native; contentfiles; analyzers
diff --git a/src/content/api/src/LittleBlocks.Template.Core/LittleBlocks.Template.Core.csproj b/src/content/api/src/LittleBlocks.Template.Core/LittleBlocks.Template.Core.csproj
index 7924532..1042c93 100644
--- a/src/content/api/src/LittleBlocks.Template.Core/LittleBlocks.Template.Core.csproj
+++ b/src/content/api/src/LittleBlocks.Template.Core/LittleBlocks.Template.Core.csproj
@@ -1,7 +1,7 @@
- net6.0
+ net8.0
default
@@ -11,10 +11,10 @@
-
-
-
-
+
+
+
+
diff --git a/src/content/api/src/LittleBlocks.Template.WebApi.IntegrationTests/LittleBlocks.Template.WebApi.IntegrationTests.csproj b/src/content/api/src/LittleBlocks.Template.WebApi.IntegrationTests/LittleBlocks.Template.WebApi.IntegrationTests.csproj
index 29706f3..d1ae89b 100644
--- a/src/content/api/src/LittleBlocks.Template.WebApi.IntegrationTests/LittleBlocks.Template.WebApi.IntegrationTests.csproj
+++ b/src/content/api/src/LittleBlocks.Template.WebApi.IntegrationTests/LittleBlocks.Template.WebApi.IntegrationTests.csproj
@@ -1,16 +1,16 @@
- net6.0
+ net8.0
default
-
-
-
-
-
+
+
+
+
+
all
runtime; build; native; contentfiles; analyzers
diff --git a/src/content/api/src/LittleBlocks.Template.WebApi/Extensions/ServiceCollectionExtensions.cs b/src/content/api/src/LittleBlocks.Template.WebApi/Extensions/ServiceCollectionExtensions.cs
index 03cf6be..0169aeb 100644
--- a/src/content/api/src/LittleBlocks.Template.WebApi/Extensions/ServiceCollectionExtensions.cs
+++ b/src/content/api/src/LittleBlocks.Template.WebApi/Extensions/ServiceCollectionExtensions.cs
@@ -1,10 +1,8 @@
-using System.Reflection;
+using System;
using LittleBlocks.Ef;
-using MediatR;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using LittleBlocks.Template.Core.Data;
-using LittleBlocks.Template.Core.Shared;
namespace LittleBlocks.Template.WebApi.Extensions
{
@@ -12,7 +10,8 @@ public static class ServiceCollectionExtensions
{
public static IServiceCollection AddCoreServices(this IServiceCollection services)
{
- services.AddMediatR(typeof(HandlerBase).GetTypeInfo().Assembly);
+ services.AddMediatR(cfg => cfg.RegisterServicesFromAssemblies(AppDomain.CurrentDomain.GetAssemblies()));
+
return services;
}
diff --git a/src/content/api/src/LittleBlocks.Template.WebApi/LittleBlocks.Template.WebApi.csproj b/src/content/api/src/LittleBlocks.Template.WebApi/LittleBlocks.Template.WebApi.csproj
index 6800353..f740d5d 100644
--- a/src/content/api/src/LittleBlocks.Template.WebApi/LittleBlocks.Template.WebApi.csproj
+++ b/src/content/api/src/LittleBlocks.Template.WebApi/LittleBlocks.Template.WebApi.csproj
@@ -1,7 +1,7 @@
- net6.0
+ net8.0
default
@@ -15,11 +15,11 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/src/templatepack.csproj b/src/templatepack.csproj
index b260e46..6c6c5b1 100644
--- a/src/templatepack.csproj
+++ b/src/templatepack.csproj
@@ -2,13 +2,13 @@
Template
- 1.0.0
+ 2.0.0
LittleBlocks.API
LittleBlocks Solution Template
Mohammad Moattar
Template generator for LittleBlocks framework
dotnet-new;templates;LittleBlocks
- net5.0
+ net8.0
https://github.com/LittleBlocks/LittleBlocks.Templates
true
false