From 8fbf755155d4fd1c6803dd0345d7ac22ecd2f810 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Wed, 25 Aug 2021 09:03:20 +1000 Subject: [PATCH] fix build failure nuget pack 5.10.0 requires target platform version to be appended to nuspec --- Flow.Launcher/Flow.Launcher.csproj | 2 +- Scripts/post_build.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher/Flow.Launcher.csproj b/Flow.Launcher/Flow.Launcher.csproj index d360aca85..529fc52a2 100644 --- a/Flow.Launcher/Flow.Launcher.csproj +++ b/Flow.Launcher/Flow.Launcher.csproj @@ -83,7 +83,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/Scripts/post_build.ps1 b/Scripts/post_build.ps1 index 49dc0849e..30ab36e14 100644 --- a/Scripts/post_build.ps1 +++ b/Scripts/post_build.ps1 @@ -71,7 +71,7 @@ function Pack-Squirrel-Installer ($path, $version, $output) { Write-Host "Packing: $spec" Write-Host "Input path: $input" # making version static as multiple versions can exist in the nuget folder and in the case a breaking change is introduced. - New-Alias Nuget $env:USERPROFILE\.nuget\packages\NuGet.CommandLine\5.10.0\tools\NuGet.exe -Force + New-Alias Nuget $env:USERPROFILE\.nuget\packages\NuGet.CommandLine\5.4.0\tools\NuGet.exe -Force # dotnet pack is not used because ran into issues, need to test installation and starting up if to use it. nuget pack $spec -Version $version -BasePath $input -OutputDirectory $output -Properties Configuration=Release