c# Api 錯誤 Unable to resolve service for type while attempting to activate

滢枫發表於2024-03-28

.net8 中提示 以上錯誤
增加了

builder.Services.AddScoped<IFlowCoefficient, FlowCoefficientManageService>(); 仍無效 提示錯誤

改為 builder.Services.AddScoped(typeof(FlowCoefficientManageService));

相關文章