Skip to content

Commit

Permalink
Merge pull request #22 from netcorepal/update-framework
Browse files Browse the repository at this point in the history
使用最新的框架版本,修复一些break change的影响
  • Loading branch information
witskeeper authored Nov 12, 2024
2 parents a487022 + 210ad1e commit 7432491
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion template/Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<NetCorePalVersion>2.0.0-preview.1.2409071627</NetCorePalVersion>
<NetCorePalVersion>2.0.0-preview.1.2411120955</NetCorePalVersion>
<FrameworkVersion>8.0.0</FrameworkVersion>
<ExtensionsVersion>8.0.0</ExtensionsVersion>
<EntityFrameworkVersion>8.0.0</EntityFrameworkVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using NetCorePal.Extensions.DistributedLocks;
using NetCorePal.Extensions.DistributedTransactions;
using NetCorePal.Extensions.Domain;
using NetCorePal.Extensions.Dto;
using NetCorePal.Extensions.Primitives;

namespace ABC.Template.Web.Controllers
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Microsoft.AspNetCore.Mvc;
using NetCorePal.Extensions.DistributedTransactions.Sagas;
using NetCorePal.Extensions.Domain;
using NetCorePal.Extensions.Dto;

namespace ABC.Template.Web.Controllers;

Expand Down
4 changes: 2 additions & 2 deletions template/src/ABC.Template.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
.AddIIntegrationEventConverter(typeof(Program))
.UseCap(typeof(Program))
.AddContextIntegrationFilters()
.AddEnvIntegrationFilters();
.AddEnvIntegrationFilters(envOption => envOption.ServiceName = "Abc.Template");
builder.Services.AddCap(x =>
{
x.JsonSerializerOptions.Converters.Add(new EntityIdJsonConverterFactory());
Expand All @@ -140,7 +140,7 @@
});

#endregion

builder.Services.AddMediatR(cfg =>
cfg.RegisterServicesFromAssemblies(Assembly.GetExecutingAssembly())
.AddKnownExceptionValidationBehavior()
Expand Down
2 changes: 2 additions & 0 deletions template/test/ABC.Template.Web.Tests/DemoTests.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
using ABC.Template.Infrastructure;
using ABC.Template.Web.Controllers;
using ABC.Template.Web.Tests.Extensions;
using Microsoft.EntityFrameworkCore;
using Moq;
using NetCorePal.Context;
using NetCorePal.Extensions.AspNetCore;
using NetCorePal.Extensions.Dto;

namespace ABC.Template.Web.Tests
{
Expand Down

0 comments on commit 7432491

Please sign in to comment.