diff --git a/build.psm1 b/build.psm1 index 88ed070ce2..3a8a2b05da 100644 --- a/build.psm1 +++ b/build.psm1 @@ -840,9 +840,6 @@ It consists of a cross-platform command-line shell and associated scripting lang $Source = Split-Path -Parent (Get-PSOutput -Options (New-PSOptions -Publish)) Write-Verbose "Packaging $Source" - Write-Verbose "Copy license and third party notice to $Source" - Copy-Item "$PSScriptRoot\LICENSE.txt" "$Source" -Force -ErrorAction SilentlyContinue - if ($IsWindows) { # Product Guid needs to be unique for every PowerShell version to allow SxS install $productGuid = [guid]::NewGuid() diff --git a/src/powershell-unix/project.json b/src/powershell-unix/project.json index aaf2f5a422..37bd8a9037 100644 --- a/src/powershell-unix/project.json +++ b/src/powershell-unix/project.json @@ -23,6 +23,7 @@ "include": [ "*.so", "*.dylib", + "../../LICENSE.txt", "../../powershell.version" ] }, @@ -46,6 +47,7 @@ "include": [ "*.so", "*.dylib", + "../../LICENSE.txt", "../../powershell.version" ] }, diff --git a/src/powershell-win-core/project.json b/src/powershell-win-core/project.json index 6a64140c5b..adcfcf850e 100644 --- a/src/powershell-win-core/project.json +++ b/src/powershell-win-core/project.json @@ -22,6 +22,7 @@ } }, "include": [ + "../../LICENSE.txt", "../../powershell.version" ] }, @@ -47,6 +48,7 @@ "pwrshplugin.dll", "pwrshplugin.pdb", "Install-PowerShellRemoting.ps1", + "../../LICENSE.txt", "../../powershell.version" ] },