# HG changeset patch # User Brad Greco # Date 1563034150 14400 # Node ID 9c0e18d65e8bd9a266d9d2952c903284b362b4be # Parent 69e8ecdbbdd3b6a2e31687cae8b07915d3f06776 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. diff -r 69e8ecdbbdd3 -r 9c0e18d65e8b ServerMonitor/Forms/ServerSummaryForm.cs --- 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 @@ /// Begins checking for program updates in the background. 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(); diff -r 69e8ecdbbdd3 -r 9c0e18d65e8b ServerMonitor/ServerMonitor.csproj --- 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 @@ - ..\packages\NAppUpdate.Framework.0.5.1.0\lib\net40\NAppUpdate.Framework.dll + False + ..\lib\NAppUpdate.Framework.dll ..\packages\NAudio.1.9.0\lib\net35\NAudio.dll diff -r 69e8ecdbbdd3 -r 9c0e18d65e8b ServerMonitor/packages.config --- 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 @@  - \ No newline at end of file