From 055bc48d1d17cb9aa9747d678e668e3188332563 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Fri, 3 Jul 2026 17:08:20 +0900 Subject: [PATCH] fix: add assembly configuration to FastEndpoints MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PROBLEM: - FastEndpoints was unable to find any endpoint declarations - Caused 'System.InvalidOperationException' at startup - Reason: AddFastEndpoints() was called without assembly configuration SOLUTION: - Add explicit assembly configuration to AddFastEndpoints() - Specify config.Assemblies = new[] { typeof(Program).Assembly } - Enables FastEndpoints to discover all endpoint classes in the assembly VERIFICATION: ✅ dotnet build: 0 errors, 0 warnings ✅ dotnet test: 26/26 passed This fixes the 'core dumped' issue where dotnet process was aborting due to missing endpoint registration. Co-Authored-By: Claude Haiku 4.5 --- src/TaxBaik.Web/Program.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/TaxBaik.Web/Program.cs b/src/TaxBaik.Web/Program.cs index 5e7bc0f..19994da 100644 --- a/src/TaxBaik.Web/Program.cs +++ b/src/TaxBaik.Web/Program.cs @@ -56,7 +56,10 @@ builder.Host.UseSerilog((context, config) => // Controllers + FastEndpoints (API-First) builder.Services.AddControllers(); -builder.Services.AddFastEndpoints(); +builder.Services.AddFastEndpoints(config => +{ + config.Assemblies = new[] { typeof(Program).Assembly }; +}); builder.Services.AddProblemDetails(); builder.Services.AddHealthChecks(); builder.Services.AddRateLimiter(options =>