Include license during build

Rather than including it only at packaging, we should include this
license as part of `dotnet build` and `dotnet publish`.
This commit is contained in:
Andrew Schwartzmeyer
2016-08-11 13:38:54 -07:00
parent 7c9a76bfdb
commit a3f3734f09
3 changed files with 4 additions and 3 deletions
-3
View File
@@ -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()
+2
View File
@@ -23,6 +23,7 @@
"include": [
"*.so",
"*.dylib",
"../../LICENSE.txt",
"../../powershell.version"
]
},
@@ -46,6 +47,7 @@
"include": [
"*.so",
"*.dylib",
"../../LICENSE.txt",
"../../powershell.version"
]
},
+2
View File
@@ -22,6 +22,7 @@
}
},
"include": [
"../../LICENSE.txt",
"../../powershell.version"
]
},
@@ -47,6 +48,7 @@
"pwrshplugin.dll",
"pwrshplugin.pdb",
"Install-PowerShellRemoting.ps1",
"../../LICENSE.txt",
"../../powershell.version"
]
},