changeset 34:9c0e18d65e8b

Build NuGet from source instead of using the NuGet package to fix the update notification always showing when the program is run from Windows startup.
author Brad Greco <brad@bgreco.net>
date Sat, 13 Jul 2019 12:09:10 -0400
parents 69e8ecdbbdd3
children 2ffb0bda7705
files ServerMonitor/Forms/ServerSummaryForm.cs ServerMonitor/ServerMonitor.csproj ServerMonitor/packages.config
diffstat 3 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ServerMonitor/Forms/ServerSummaryForm.cs	Sun Jun 16 16:55:37 2019 -0400
+++ b/ServerMonitor/Forms/ServerSummaryForm.cs	Sat Jul 13 12:09:10 2019 -0400
@@ -384,6 +384,10 @@
         /// <summary>Begins checking for program updates in the background.</summary>
         private void CheckForUpdate()
         {
+            // The latest NuGet package of NAppUpdate (0.5.1) always thinks that an update is available
+            // when the program is run from Windows startup (https://github.com/synhershko/NAppUpdate/pull/122).
+            // The fix has already been made but not released, so the version of NAppUpdate included in
+            // this project was built from source instead of using the NuGet package.
             UpdateManager manager = UpdateManager.Instance;
             // Make the update manager happy if the program was just restarted to apply an update.
             manager.ReinstateIfRestarted();
--- a/ServerMonitor/ServerMonitor.csproj	Sun Jun 16 16:55:37 2019 -0400
+++ b/ServerMonitor/ServerMonitor.csproj	Sat Jul 13 12:09:10 2019 -0400
@@ -62,7 +62,8 @@
   </PropertyGroup>
   <ItemGroup>
     <Reference Include="NAppUpdate.Framework, Version=0.5.1.0, Culture=neutral, PublicKeyToken=d1f1d1f19f9e5a56, processorArchitecture=MSIL">
-      <HintPath>..\packages\NAppUpdate.Framework.0.5.1.0\lib\net40\NAppUpdate.Framework.dll</HintPath>
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\lib\NAppUpdate.Framework.dll</HintPath>
     </Reference>
     <Reference Include="NAudio, Version=1.9.0.0, Culture=neutral, processorArchitecture=MSIL">
       <HintPath>..\packages\NAudio.1.9.0\lib\net35\NAudio.dll</HintPath>
--- a/ServerMonitor/packages.config	Sun Jun 16 16:55:37 2019 -0400
+++ b/ServerMonitor/packages.config	Sat Jul 13 12:09:10 2019 -0400
@@ -1,6 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
 <packages>
-  <package id="NAppUpdate.Framework" version="0.5.1.0" targetFramework="net45" />
   <package id="NAudio" version="1.9.0" targetFramework="net45" />
   <package id="SSH.NET" version="2016.1.0" targetFramework="net45" />
 </packages>
\ No newline at end of file