File tree Expand file tree Collapse file tree 3 files changed +4
-10
lines changed
Expand file tree Collapse file tree 3 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 88#### Changes
99
1010- Add updated Durable .NET templates (#4692 )
11+ - Set ` AzureWebJobsStorage ` to use the storage emulator by default on all platforms (#4685 )
Original file line number Diff line number Diff line change @@ -400,14 +400,9 @@ private void ValidateTargetFramework()
400400
401401 private static async Task WriteLocalSettingsJson ( WorkerRuntime workerRuntime , ProgrammingModel programmingModel )
402402 {
403- var localSettingsJsonContent = await StaticResources . LocalSettingsJson ;
403+ string localSettingsJsonContent = await StaticResources . LocalSettingsJson ;
404404 localSettingsJsonContent = localSettingsJsonContent . Replace ( $ "{{{Constants.FunctionsWorkerRuntime}}}", WorkerRuntimeLanguageHelper . GetRuntimeMoniker ( workerRuntime ) ) ;
405-
406- var storageConnectionStringValue = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows )
407- ? Constants . StorageEmulatorConnectionString
408- : string . Empty ;
409-
410- localSettingsJsonContent = localSettingsJsonContent . Replace ( $ "{{{Constants.AzureWebJobsStorage}}}", storageConnectionStringValue ) ;
405+ localSettingsJsonContent = localSettingsJsonContent . Replace ( $ "{{{Constants.AzureWebJobsStorage}}}", Constants . StorageEmulatorConnectionString ) ;
411406
412407 if ( workerRuntime == Helpers . WorkerRuntime . Powershell )
413408 {
Original file line number Diff line number Diff line change @@ -95,9 +95,7 @@ await TemplateOperationAsync(
9595 var frameworkString = string . IsNullOrEmpty ( targetFramework )
9696 ? string . Empty
9797 : $ "--Framework \" { targetFramework } \" ";
98- var connectionString = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows )
99- ? $ "--StorageConnectionStringValue \" { Constants . StorageEmulatorConnectionString } \" "
100- : string . Empty ;
98+ var connectionString = $ "--StorageConnectionStringValue \" { Constants . StorageEmulatorConnectionString } \" ";
10199 TryGetCustomHiveArg ( workerRuntime , out string customHive ) ;
102100 var exe = new Executable ( "dotnet" , $ "new func { frameworkString } --AzureFunctionsVersion v4 --name { name } { connectionString } { ( force ? "--force" : string . Empty ) } { customHive } ") ;
103101 var exitCode = await exe . RunAsync ( o => { } , e => ColoredConsole . Error . WriteLine ( ErrorColor ( e ) ) ) ;
You can’t perform that action at this time.
0 commit comments