File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ Licensed under the MIT license. See LICENSE file in the project root for full li
26
26
</contentFiles >
27
27
</metadata >
28
28
<files >
29
- <file src =" ..\src\bin\$configuration$\$targetFramework$\publish\**\*" target =" contentFiles\any\any\workers\powershell" />
29
+ <file src =" ..\src\bin\$configuration$\$targetFramework$\publish\**\*" target =" contentFiles\any\any\workers\powershell\6 " />
30
30
<file src =" ..\images\Powershell_black_64.png" target =" images\" />
31
31
</files >
32
32
</package >
Original file line number Diff line number Diff line change 3
3
"language" :" powershell" ,
4
4
"extensions" :[" .ps1" , " .psm1" ],
5
5
"defaultExecutablePath" :" dotnet" ,
6
- "defaultWorkerPath" :" Microsoft.Azure.Functions.PowerShellWorker.dll"
6
+ "defaultWorkerPath" :" %FUNCTIONS_WORKER_RUNTIME_VERSION%/Microsoft.Azure.Functions.PowerShellWorker.dll" ,
7
+ "supportedRuntimeVersions" :[" 6" , " 7" ],
8
+ "defaultRuntimeVersion" :" 6" ,
9
+ "sanitizeRuntimeVersion" :" \\ d+"
7
10
}
8
11
}
Original file line number Diff line number Diff line change 4
4
#
5
5
6
6
$FUNC_RUNTIME_VERSION = ' 3'
7
+ $NETCOREAPP_VERSION = ' 2.1'
8
+ $POWERSHELL_VERSION = ' 6'
7
9
8
10
$arch = [System.Runtime.InteropServices.RuntimeInformation ]::OSArchitecture.ToString().ToLowerInvariant()
9
11
if ($IsWindows ) {
@@ -43,11 +45,13 @@ Write-Host "Copying azure-functions-powershell-worker to Functions Host workers
43
45
44
46
$configuration = if ($env: CONFIGURATION ) { $env: CONFIGURATION } else { ' Debug' }
45
47
Remove-Item - Recurse - Force - Path " $FUNC_CLI_DIRECTORY /workers/powershell"
46
- Copy-Item - Recurse - Force " $PSScriptRoot /../../src/bin/$configuration /netcoreapp2.1/publish/" " $FUNC_CLI_DIRECTORY /workers/powershell"
48
+ Copy-Item - Recurse - Force " $PSScriptRoot /../../src/bin/$configuration /netcoreapp$NETCOREAPP_VERSION /publish/" " $FUNC_CLI_DIRECTORY /workers/powershell/$POWERSHELL_VERSION "
49
+ Copy-Item - Recurse - Force " $PSScriptRoot /../../src/bin/$configuration /netcoreapp$NETCOREAPP_VERSION /publish/worker.config.json" " $FUNC_CLI_DIRECTORY /workers/powershell"
47
50
48
51
Write-Host " Staring Functions Host..."
49
52
50
53
$Env: FUNCTIONS_WORKER_RUNTIME = " powershell"
54
+ $Env: FUNCTIONS_WORKER_RUNTIME_VERSION = $POWERSHELL_VERSION
51
55
$Env: AZURE_FUNCTIONS_ENVIRONMENT = " development"
52
56
$Env: Path = " $Env: Path $ ( [System.IO.Path ]::PathSeparator) $FUNC_CLI_DIRECTORY "
53
57
$funcExePath = Join-Path $FUNC_CLI_DIRECTORY $FUNC_EXE_NAME
You can’t perform that action at this time.
0 commit comments