Skip to content

Commit f98eee6

Browse files
committed
Fix nuget commandline reference
1 parent cd2037d commit f98eee6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Flow.Launcher/Flow.Launcher.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@
7070
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
7171
<PackageReference Include="NHotkey.Wpf" Version="1.2.1" />
7272
<PackageReference Include="NLog.Web.AspNetCore" Version="4.9.0" />
73+
<PackageReference Include="NuGet.CommandLine" Version="5.4.0">
74+
<PrivateAssets>all</PrivateAssets>
75+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
76+
</PackageReference>
7377
<PackageReference Include="PropertyChanged.Fody" Version="2.5.13" />
7478
<PackageReference Include="System.Data.SQLite" Version="1.0.112" />
7579
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.112" />

Scripts/post_build.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ function Main {
125125
Delete-Unused $p $config
126126
$o = "$p\Output\Packages"
127127
Validate-Directory $o
128+
# making version static as multiple versions can exist in the nuget folder and in the case a breaking change is introduced.
129+
New-Alias Nuget $env:USERPROFILE\.nuget\packages\NuGet.CommandLine\5.4.0\tools\NuGet.exe -Force
128130
Pack-Squirrel-Installer $p $v $o
129131

130132
$isInCI = $env:APPVEYOR

0 commit comments

Comments
 (0)