Browse Source

closes #3601

pull/3604/head
Alper Ebicoglu 7 years ago
parent
commit
ff5c55d8a2
  1. 16
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateProjectBuilder.cs

16
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateProjectBuilder.cs

@ -60,10 +60,22 @@ namespace Volo.Abp.Cli.ProjectBuilding
args.TemplateSource args.TemplateSource
); );
DeveloperApiKeyResult apiKeyResult; DeveloperApiKeyResult apiKeyResult = null;
#if DEBUG #if DEBUG
apiKeyResult = _configuration.GetSection("apiKeyResult").Get<DeveloperApiKeyResult>(); //you can use user secrets try
{
var apiKeyResultSection = _configuration.GetSection("apiKeyResult");
if (apiKeyResultSection.Exists())
{
apiKeyResult = apiKeyResultSection.Get<DeveloperApiKeyResult>(); //you can use user secrets
}
}
catch (Exception e)
{
Console.WriteLine(e);
}
if (apiKeyResult == null) if (apiKeyResult == null)
{ {
apiKeyResult = await ApiKeyService.GetApiKeyOrNullAsync(); apiKeyResult = await ApiKeyService.GetApiKeyOrNullAsync();

Loading…
Cancel
Save