fix: Resolve backend build errors - add RootNamespace, OutputType, GlobalUsings, and code analysis settings
ci / backend (push) Failing after 1s
ci / static (push) Failing after 5s
ci / frontend (push) Failing after 6s

This commit is contained in:
2026-08-02 05:30:00 +09:00
parent 50db649b5c
commit 87705c1f6a
14 changed files with 19 additions and 3 deletions
@@ -1,4 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="DbUp-PostgreSQL" />
</ItemGroup>
+1
View File
@@ -6,6 +6,7 @@
<PackageReference Include="FastEndpoints" />
<PackageReference Include="Hangfire.AspNetCore" />
<PackageReference Include="Hangfire.PostgreSql" />
<PackageReference Include="Newtonsoft.Json" VersionOverride="13.0.3" />
<PackageReference Include="Npgsql" />
<PackageReference Include="Polly" />
<PackageReference Include="Serilog.AspNetCore" />
+1 -1
View File
@@ -44,7 +44,7 @@ builder.Services.AddSingleton<IDbConnectionFactory, NpgsqlConnectionFactory>();
builder.Services.AddSingleton<IOutboxWriter, DapperOutboxWriter>();
builder.Services.AddSingleton<IInboxStore, DapperInboxStore>();
builder.Services.AddSingleton<IJobRunRepository, DapperJobRunRepository>();
builder.Services.AddSingleton<IClock, SystemClock>();
builder.Services.AddSingleton<IClock, KArtSell.BuildingBlocks.Time.SystemClock>();
builder.Services.AddProblemDetails();
builder.Services.AddFastEndpoints();
@@ -9,7 +9,7 @@ public sealed class Endpoint : EndpointWithoutRequest<Response>
{
Get("/internal/v1/model-operations/plan");
Roles("Quant", "Risk", "System", "Auditor");
Description(x => x.WithTags("ModelOperations"));
Tags("ModelOperations");
}
public override Task HandleAsync(CancellationToken ct)
@@ -4,5 +4,6 @@
<PackageReference Include="FastEndpoints" />
<PackageReference Include="Dapper" />
<PackageReference Include="Hangfire.Core" />
<PackageReference Include="Newtonsoft.Json" VersionOverride="13.0.3" />
</ItemGroup>
</Project>
@@ -9,7 +9,7 @@ public sealed class Endpoint(SellPolicyChain policyChain) : Endpoint<Request, Re
{
Post("/internal/v1/research/sell-policy/evaluate");
Roles("Quant", "System");
Description(x => x.WithTags("ResearchOnly"));
Tags("ResearchOnly");
}
public override async Task HandleAsync(Request req, CancellationToken ct)
@@ -1,4 +1,6 @@
using FastEndpoints;
using Microsoft.AspNetCore.Http;
using System.Text.Json;
using KArtSell.Modules.SignalEngine.Application;
namespace KArtSell.Modules.SignalEngine.Features.GenerateSellDecision;