From 85b01aba257c954fe84ab78e7b01aaca4364e737 Mon Sep 17 00:00:00 2001 From: Francisco-Gamino Date: Tue, 23 Nov 2021 00:36:38 -0800 Subject: [PATCH 1/5] Set TargetFramework to net6.0 --- build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.ps1 b/build.ps1 index 0caf251e..7e30f6ae 100644 --- a/build.ps1 +++ b/build.ps1 @@ -34,7 +34,7 @@ param( #Requires -Version 6.0 $PowerShellVersion = '7' -$TargetFramework = 'netcoreapp3.1' +$TargetFramework = 'net6.0' function Get-FunctionsCoreToolsDir { if ($CoreToolsDir) { From fd7cec2ba1f7585d4c2a964d1ce0f6352c58fdb7 Mon Sep 17 00:00:00 2001 From: Francisco-Gamino Date: Tue, 23 Nov 2021 00:40:04 -0800 Subject: [PATCH 2/5] Upgrade to .NET SDK 6.0 --- tools/helper.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/helper.psm1 b/tools/helper.psm1 index 8571999f..a5ee7161 100644 --- a/tools/helper.psm1 +++ b/tools/helper.psm1 @@ -10,8 +10,8 @@ $RepoRoot = (Resolve-Path "$PSScriptRoot/..").Path $DotnetSDKVersionRequirements = @{ '6.0' = @{ - MinimalPatch = '100-preview.7.21379.14' - DefaultPatch = '100-preview.7.21379.14' + MinimalPatch = '100' + DefaultPatch = '100' } } From 9ce6a0db6d053c305341332a91fe91567e3164d7 Mon Sep 17 00:00:00 2001 From: Francisco-Gamino Date: Tue, 23 Nov 2021 00:46:15 -0800 Subject: [PATCH 3/5] Upgrade to PowerShell SDK 7.2.0 --- src/Microsoft.Azure.Functions.PowerShellWorker.csproj | 2 +- .../Unit/Microsoft.Azure.Functions.PowerShellWorker.Test.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.Azure.Functions.PowerShellWorker.csproj b/src/Microsoft.Azure.Functions.PowerShellWorker.csproj index c8ba65ea..ab2d6a31 100644 --- a/src/Microsoft.Azure.Functions.PowerShellWorker.csproj +++ b/src/Microsoft.Azure.Functions.PowerShellWorker.csproj @@ -21,7 +21,7 @@ Licensed under the MIT license. See LICENSE file in the project root for full li - + diff --git a/test/Unit/Microsoft.Azure.Functions.PowerShellWorker.Test.csproj b/test/Unit/Microsoft.Azure.Functions.PowerShellWorker.Test.csproj index 103d9e93..60aaf8e7 100644 --- a/test/Unit/Microsoft.Azure.Functions.PowerShellWorker.Test.csproj +++ b/test/Unit/Microsoft.Azure.Functions.PowerShellWorker.Test.csproj @@ -10,7 +10,7 @@ - + From 57cc7639875d07c3bf4fdb2a22ca74af68fa0c64 Mon Sep 17 00:00:00 2001 From: Francisco-Gamino Date: Tue, 23 Nov 2021 08:41:37 -0800 Subject: [PATCH 4/5] Set PowerShellVersion to 7.2 --- build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.ps1 b/build.ps1 index 7e30f6ae..dad2e5e4 100644 --- a/build.ps1 +++ b/build.ps1 @@ -33,7 +33,7 @@ param( #Requires -Version 6.0 -$PowerShellVersion = '7' +$PowerShellVersion = '7.2' $TargetFramework = 'net6.0' function Get-FunctionsCoreToolsDir { From 552fc0c5868ff89e2d202c6067cfbea51fec46b4 Mon Sep 17 00:00:00 2001 From: Francisco-Gamino Date: Tue, 23 Nov 2021 12:16:44 -0800 Subject: [PATCH 5/5] Set the PowerShell language worker version to 7.2 --- test/E2E/TestFunctionApp/local.settings.json | 1 + 1 file changed, 1 insertion(+) diff --git a/test/E2E/TestFunctionApp/local.settings.json b/test/E2E/TestFunctionApp/local.settings.json index cd5dcbe6..73924c8f 100644 --- a/test/E2E/TestFunctionApp/local.settings.json +++ b/test/E2E/TestFunctionApp/local.settings.json @@ -4,6 +4,7 @@ "AzureWebJobsEventHubSender":"", "AzureWebJobsCosmosDBConnectionString":"", "FUNCTIONS_WORKER_RUNTIME": "powershell", + "FUNCTIONS_WORKER_RUNTIME_VERSION": "7.2", "PSWorkerInProcConcurrencyUpperBound": 10 } }