From d3193c7cc06a4876b2dace7193fcc1aa31115868 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Fri, 16 Oct 2020 11:38:03 -0700 Subject: [PATCH] Add icon file to root of nuget package --- build.psm1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.psm1 b/build.psm1 index 63bee71..3864135 100644 --- a/build.psm1 +++ b/build.psm1 @@ -597,7 +597,9 @@ function Start-BuildPowerShellNativePackage $iconFileName = "Powershell_black_64.png" $iconPath = Join-Path $PSScriptRoot -ChildPath "assets\$iconFileName" -Resolve - $Nuspec -f $Version, $iconPath | Out-File -FilePath (Join-Path $PackageRoot -ChildPath 'Microsoft.PowerShell.Native.nuspec') -Force + Copy-Item $iconPath (Join-Path $PackageRoot -ChildPath $iconFileName) -Verbose + + $Nuspec -f $Version, $iconFileName | Out-File -FilePath (Join-Path $PackageRoot -ChildPath 'Microsoft.PowerShell.Native.nuspec') -Force if(-not (Test-Path $NuGetOutputPath)) {