From 1da99ed1477b6c112befa76191a5238bd8526ad9 Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Tue, 27 Aug 2024 23:12:47 +1000 Subject: [PATCH] Enable extra sanity checks on service provider --- TASVideos/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/TASVideos/Program.cs b/TASVideos/Program.cs index 763e811a8..58253f5de 100644 --- a/TASVideos/Program.cs +++ b/TASVideos/Program.cs @@ -9,6 +9,11 @@ using TASVideos.MovieParsers; var builder = WebApplication.CreateBuilder(args); +builder.Host.UseDefaultServiceProvider(config => +{ + config.ValidateOnBuild = true; + config.ValidateScopes = true; +}); // We use false to support GitVersionTask. // This also suppresses the creation of [assembly: UserSecretsId("...")], so builder.Configuration.AddUserSecrets() will not work.