Skip to content

Commit aa7dc92

Browse files
committed
Use "DOTNET_" prefix.
1 parent 26e9fa8 commit aa7dc92

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ builder.UseContentRoot(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Loc
422422
// set the host configuration
423423
builder.ConfigureHostConfiguration(config =>
424424
{
425-
config.AddEnvironmentVariables(prefix: "NETCORE_");
425+
config.AddEnvironmentVariables(prefix: "DOTNET_");
426426
config.AddInMemoryCollection(new[] { new KeyValuePair<string, string>(HostDefaults.ApplicationKey, Assembly.GetExecutingAssembly().GetName().Name) });
427427
});
428428

src/MicroBatchFramework/BatchHost.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static class BatchHost
2222
/// </summary>
2323
/// <remarks>
2424
/// The following defaults are applied to the returned <see cref="HostBuilder"/>:
25-
/// set the <see cref="IHostingEnvironment.EnvironmentName"/> to the NETCORE_ENVIRONMENT,
25+
/// set the <see cref="IHostingEnvironment.EnvironmentName"/> to the DOTNET_ENVIRONMENT,
2626
/// load <see cref="IConfiguration"/> from 'appsettings.json' and 'appsettings.[<see cref="IHostingEnvironment.EnvironmentName"/>].json',
2727
/// load <see cref="IConfiguration"/> from User Secrets when <see cref="IHostingEnvironment.EnvironmentName"/> is 'Development' using the entry assembly,
2828
/// load <see cref="IConfiguration"/> from environment variables,
@@ -36,7 +36,7 @@ public static class BatchHost
3636
/// </summary>
3737
/// <remarks>
3838
/// The following defaults are applied to the returned <see cref="HostBuilder"/>:
39-
/// set the <see cref="IHostingEnvironment.EnvironmentName"/> to the NETCORE_ENVIRONMENT,
39+
/// set the <see cref="IHostingEnvironment.EnvironmentName"/> to the DOTNET_ENVIRONMENT,
4040
/// load <see cref="IConfiguration"/> from 'appsettings.json' and 'appsettings.[<see cref="IHostingEnvironment.EnvironmentName"/>].json',
4141
/// load <see cref="IConfiguration"/> from User Secrets when <see cref="IHostingEnvironment.EnvironmentName"/> is 'Development' using the entry assembly,
4242
/// load <see cref="IConfiguration"/> from environment variables,

0 commit comments

Comments
 (0)