Skip to content

Commit 7819e39

Browse files
committed
Updated to latest common
1 parent 1ef8b35 commit 7819e39

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

DuplicatiIngress.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PackageReference Include="UuidExtensions" Version="1.2.0" />
2020
<PackageReference Include="RobotsTxtCore" Version="3.0.0" />
2121

22-
<PackageReference Include="DuplicatiConsoleCommon" Version="1.0.0" />
22+
<PackageReference Include="DuplicatiConsoleCommon" Version="1.0.1" />
2323
</ItemGroup>
2424

2525
</Project>

Program.cs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,7 @@
3030
var builder = WebApplication.CreateBuilder(args);
3131

3232
// Support the untracked local environment variables file for development
33-
if (builder.Environment.IsDevelopment())
34-
{
35-
// Load into environment variables as well
36-
var localEnvironmentVariables = new ConfigurationBuilder()
37-
.AddJsonFile("local.environmentvariables.json", optional: true, reloadOnChange: false)
38-
.Build().AsEnumerable().ToList();
39-
40-
foreach (var (key, value) in localEnvironmentVariables)
41-
Environment.SetEnvironmentVariable(key, value);
42-
}
43-
44-
builder.Configuration.AddEnvironmentVariables();
33+
ConfigureDevSetup.ConfigureForDevelopment(builder);
4534

4635
var envConfig = builder.Configuration.GetRequiredSection("Environment").Get<EnvironmentConfig>()!;
4736
builder.Services.AddSingleton(envConfig);

0 commit comments

Comments
 (0)