File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Modules/Intent.Modules.AzureFunctions
Templates/Isolated/Program Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<package >
33 <id >Intent.AzureFunctions</id >
4- <version >5.0.20 </version >
4+ <version >5.0.21-pre.0 </version >
55 <supportedClientVersions >[4.5.15-a, 5.0.0-a)</supportedClientVersions >
66 <summary >Provides support to describe Azure Functions in the Services designer</summary >
77 <description >Provides support to describe Azure Functions in the Services designer</description >
Original file line number Diff line number Diff line change @@ -227,7 +227,11 @@ public IProgramFile ConfigureAppConfiguration(
227227 parameters : parameters ,
228228 configure : ( block , @params ) =>
229229 {
230- block . AddStatement ( "config.AddEnvironmentVariables();" ) ;
230+ var existing = block . FindStatement ( s => s . GetText ( "" ) . StartsWith ( "config.AddEnvironmentVariables" ) ) ;
231+ if ( existing is null )
232+ {
233+ block . AddStatement ( "config.AddEnvironmentVariables();" ) ;
234+ }
231235 configure ? . Invoke ( block , @params ) ;
232236 } ,
233237 priority : priority ) ;
You can’t perform that action at this time.
0 commit comments