diff --git a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Database/EasyMicroservices.PaymentsMicroservice.Database.csproj b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Database/EasyMicroservices.PaymentsMicroservice.Database.csproj
index b006dd3..c60bb37 100644
--- a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Database/EasyMicroservices.PaymentsMicroservice.Database.csproj
+++ b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Database/EasyMicroservices.PaymentsMicroservice.Database.csproj
@@ -10,7 +10,7 @@
-
+
diff --git a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Domain/EasyMicroservices.PaymentsMicroservice.Domain.csproj b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Domain/EasyMicroservices.PaymentsMicroservice.Domain.csproj
index a8074f4..f212999 100644
--- a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Domain/EasyMicroservices.PaymentsMicroservice.Domain.csproj
+++ b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Domain/EasyMicroservices.PaymentsMicroservice.Domain.csproj
@@ -12,7 +12,7 @@
-
+
diff --git a/src/CSharp/EasyMicroservices.PaymentsMicroservice.StartUp/EasyMicroservices.PaymentsMicroservice.StartUp.csproj b/src/CSharp/EasyMicroservices.PaymentsMicroservice.StartUp/EasyMicroservices.PaymentsMicroservice.StartUp.csproj
index 4e2642b..8ad1d99 100644
--- a/src/CSharp/EasyMicroservices.PaymentsMicroservice.StartUp/EasyMicroservices.PaymentsMicroservice.StartUp.csproj
+++ b/src/CSharp/EasyMicroservices.PaymentsMicroservice.StartUp/EasyMicroservices.PaymentsMicroservice.StartUp.csproj
@@ -6,7 +6,7 @@
-
+
diff --git a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Tests/EasyMicroservices.PaymentsMicroservice.Tests.csproj b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Tests/EasyMicroservices.PaymentsMicroservice.Tests.csproj
index a838697..9f2a597 100644
--- a/src/CSharp/EasyMicroservices.PaymentsMicroservice.Tests/EasyMicroservices.PaymentsMicroservice.Tests.csproj
+++ b/src/CSharp/EasyMicroservices.PaymentsMicroservice.Tests/EasyMicroservices.PaymentsMicroservice.Tests.csproj
@@ -9,13 +9,13 @@
-
+
-
-
-
-
+
+
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/EasyMicroservices.PaymentsMicroservice.WebApi.csproj b/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/EasyMicroservices.PaymentsMicroservice.WebApi.csproj
index 0d44662..92358ff 100644
--- a/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/EasyMicroservices.PaymentsMicroservice.WebApi.csproj
+++ b/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/EasyMicroservices.PaymentsMicroservice.WebApi.csproj
@@ -6,7 +6,7 @@
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/Program.cs b/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/Program.cs
index 54d7674..61a58ef 100644
--- a/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/Program.cs
+++ b/src/CSharp/EasyMicroservices.PaymentsMicroservice.WebApi/Program.cs
@@ -11,8 +11,7 @@ public class Program
public static async Task Main(string[] args)
{
var app = CreateBuilder(args);
- var build = await app.Build();
- build.UseGlobalExceptionHandler();
+ var build = await app.Build(true);
build.MapControllers();
await build.RunAsync();
}
@@ -33,7 +32,6 @@ public static async Task Run(string[] args, Action use, Acti
var app = CreateBuilder(args);
use?.Invoke(app.Services);
var build = await app.Build();
- build.UseGlobalExceptionHandler();
build.MapControllers();
serviceProvider(build.Services);
await build.RunAsync();