File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed
Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 3030var 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
4635var envConfig = builder . Configuration . GetRequiredSection ( "Environment" ) . Get < EnvironmentConfig > ( ) ! ;
4736builder . Services . AddSingleton ( envConfig ) ;
You can’t perform that action at this time.
0 commit comments