Skip to content

Commit e8c4754

Browse files
authored
fix 'secrets.json' was not found
1 parent 9f57f80 commit e8c4754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Core/Configuration/AppConfigurations.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ private static IConfigurationRoot BuildConfiguration(string path, string environ
3838

3939
if (addUserSecrets)
4040
{
41-
builder.AddUserSecrets(typeof(AppConfigurations).GetAssembly());
41+
builder.AddUserSecrets(typeof(AppConfigurations).GetAssembly(), optional: true);
4242
}
4343

4444
return builder.Build();

0 commit comments

Comments
 (0)