Skip to content

Remove downloading 'Utility.psd1' and 'Management.psd1' from build #426

Closed
@daxian-dbw

Description

@daxian-dbw

It's about this TODO comment:

# 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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions