-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Milestone
Description
It's about this TODO
comment:
azure-functions-powershell-worker/build.ps1
Lines 80 to 84 in 9651c98
# TODO: Remove this once the SDK properly bundles modules | |
Get-WebFile -Url 'https://raw.githubusercontent.com/PowerShell/PowerShell/master/src/Modules/Windows/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1' ` | |
-OutFile "$PSScriptRoot/src/Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1" | |
Get-WebFile -Url 'https://raw.githubusercontent.com/PowerShell/PowerShell/master/src/Modules/Windows/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1' ` | |
-OutFile "$PSScriptRoot/src/Modules/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1" |
PR PowerShell/PowerShell#11832, which is included in PS 7.0, makes the Microsoft.PowerShell.SDK
package bundle built-in PowerShell modules (those that are not published anywhere) properly for both Windows and Unix platforms. After dotnet publish
or dotnet build
, the modules will be placed in the $PSHome\Modules
folder.
Built-in modules are platform specific, and they are put in <output-dir>\runtimes\win\lib\netcoreapp3.1\Modules
and <output-dir>\runtimes\unix\lib\netcoreapp3.1\Modules
respectively.
AnatoliB
Metadata
Metadata
Assignees
Labels
No labels