diff --git a/BuildTasks/Copy.Task.ps1 b/BuildTasks/Copy.Task.ps1 index 9a43b8e..2daadd3 100644 --- a/BuildTasks/Copy.Task.ps1 +++ b/BuildTasks/Copy.Task.ps1 @@ -20,4 +20,10 @@ task Copy { 'Creating [.{0}]...' -f $directory.FullName.Replace($buildroot, '') Copy-Item -Path $directory.FullName -Destination $Destination -Recurse -Force } + + $license = Join-Path -Path $buildroot -ChildPath 'LICENSE' + if ( Test-Path -Path $license -PathType Leaf ) + { + Copy-Item -Path $license -Destination $Destination + } }