This commit is contained in:
luosheng
2023-03-24 10:41:06 +08:00
parent 2211e40f0f
commit 085ff1c843

View File

@@ -14,7 +14,7 @@ namespace Modbus.Net
.SetBasePath(Directory.GetCurrentDirectory()) .SetBasePath(Directory.GetCurrentDirectory())
.AddJsonFile("appsettings.default.json") .AddJsonFile("appsettings.default.json")
.AddJsonFile("appsettings.json") .AddJsonFile("appsettings.json")
.AddJsonFile($"appsettings.{Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Production"}.json", true) .AddJsonFile($"appsettings.{Environment.GetEnvironmentVariable("DOTNET_ENVIRONMENT") ?? "Production"}.json", true)
.Build(); .Build();
#nullable enable #nullable enable