Skip to content

Commit 8418c63

Browse files
Update PowerShell to SDK 7.2.0 (#706)
* Set TargetFramework to net6.0 * Upgrade to .NET SDK 6.0 * Upgrade to PowerShell SDK 7.2.0 * Set PowerShellVersion to 7.2 * Set the PowerShell language worker version to 7.2
1 parent 80956ce commit 8418c63

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ param(
3333

3434
#Requires -Version 6.0
3535

36-
$PowerShellVersion = '7'
37-
$TargetFramework = 'netcoreapp3.1'
36+
$PowerShellVersion = '7.2'
37+
$TargetFramework = 'net6.0'
3838

3939
function Get-FunctionsCoreToolsDir {
4040
if ($CoreToolsDir) {

src/Microsoft.Azure.Functions.PowerShellWorker.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Licensed under the MIT license. See LICENSE file in the project root for full li
2121

2222
<ItemGroup>
2323
<PackageReference Include="Grpc.Core" Version="2.27.0" />
24-
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.2.0-preview.9" />
24+
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.2.0" />
2525
<PackageReference Include="CommandLineParser" Version="2.3.0" />
2626
<PackageReference Include="Google.Protobuf" Version="3.11.4" />
2727
</ItemGroup>

test/E2E/TestFunctionApp/local.settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"AzureWebJobsEventHubSender":"",
55
"AzureWebJobsCosmosDBConnectionString":"",
66
"FUNCTIONS_WORKER_RUNTIME": "powershell",
7+
"FUNCTIONS_WORKER_RUNTIME_VERSION": "7.2",
78
"PSWorkerInProcConcurrencyUpperBound": 10
89
}
910
}

test/Unit/Microsoft.Azure.Functions.PowerShellWorker.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PackageReference Include="Moq" Version="4.13.1" />
1111
<PackageReference Include="xunit" Version="2.3.1" />
1212
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
13-
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.2.0-preview.9" />
13+
<PackageReference Include="Microsoft.PowerShell.SDK" Version="7.2.0" />
1414
</ItemGroup>
1515

1616
<ItemGroup>

tools/helper.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ $RepoRoot = (Resolve-Path "$PSScriptRoot/..").Path
1010

1111
$DotnetSDKVersionRequirements = @{
1212
'6.0' = @{
13-
MinimalPatch = '100-preview.7.21379.14'
14-
DefaultPatch = '100-preview.7.21379.14'
13+
MinimalPatch = '100'
14+
DefaultPatch = '100'
1515
}
1616
}
1717

0 commit comments

Comments
 (0)