Samples.WebJobs.Core icon indicating copy to clipboard operation
Samples.WebJobs.Core copied to clipboard

UserSecrets

Open jSylvestre opened this issue 7 years ago • 0 comments

Do you have an example using UserSecrets? I do: var environmentName = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"); if (string.Equals(environmentName, "development", StringComparison.OrdinalIgnoreCase)) { builder.AddUserSecrets<Program>(); } And add in the user secret location to the project. But I was wondering if there was a better way.

jSylvestre avatar Jul 25 '18 20:07 jSylvestre