We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AddEnvironmentVariables()
1 parent 3198e00 commit 92dd19eCopy full SHA for 92dd19e
samples/SimpleWebSample/Program.cs
@@ -1,4 +1,4 @@
1
-using System;
+using System;
2
using System.IO;
3
using Microsoft.AspNetCore;
4
using Microsoft.AspNetCore.Hosting;
@@ -13,6 +13,7 @@ public class Program
13
.SetBasePath(Directory.GetCurrentDirectory())
14
.AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
15
.AddJsonFile($"appsettings.{Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Production"}.json", optional: true)
16
+ .AddEnvironmentVariables()
17
.Build();
18
19
public static int Main(string[] args)
0 commit comments