mirror of https://github.com/abpframework/abp.git
4 changed files with 53 additions and 15 deletions
@ -0,0 +1,18 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Text; |
|||
using Microsoft.Extensions.Hosting; |
|||
|
|||
namespace Microsoft.Extensions.Configuration; |
|||
|
|||
public static class AbpConfigurationExtensions |
|||
{ |
|||
public static IConfigurationBuilder AddAppSettingsSecretsJson( |
|||
this IConfigurationBuilder builder, |
|||
bool optional = true, |
|||
bool reloadOnChange = true, |
|||
string path = AbpHostingHostBuilderExtensions.AppSettingsSecretJsonPath) |
|||
{ |
|||
return builder.AddJsonFile(path: path, optional: optional, reloadOnChange: reloadOnChange); |
|||
} |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
{ |
|||
"profiles": { |
|||
"MyCompanyName.MyProjectName": { |
|||
"commandName": "Project", |
|||
"environmentVariables": { |
|||
"DOTNET_ENVIRONMENT": "Development" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue