Skip to content

Commit

Permalink
Enable extra sanity checks on service provider
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiRulz committed Aug 27, 2024
1 parent fbc2382 commit 1da99ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TASVideos/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
using TASVideos.MovieParsers;

var builder = WebApplication.CreateBuilder(args);
builder.Host.UseDefaultServiceProvider(config =>
{
config.ValidateOnBuild = true;
config.ValidateScopes = true;
});

// We use <GenerateAssemblyInfo>false</GenerateAssemblyInfo> to support GitVersionTask.
// This also suppresses the creation of [assembly: UserSecretsId("...")], so builder.Configuration.AddUserSecrets<T>() will not work.
Expand Down

0 comments on commit 1da99ed

Please sign in to comment.