Skip to content

Commit

Permalink
Fix for IsNewLocalVersionAvailable
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh committed Oct 27, 2023
1 parent 6e8fefe commit bbfe083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MigrationTools.Host/Services/DetectVersionService2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public bool IsNewLocalVersionAvailable
{
get
{
return (IsPackageInstalled) ? (RunningVersion >= InstalledVersion) : false;
return (IsPackageInstalled) ? !(RunningVersion >= InstalledVersion) : false;
}
}

Expand Down Expand Up @@ -109,7 +109,7 @@ private void InitialiseService()

public static Version GetRunningVersion()
{
Version assver = Assembly.GetEntryAssembly()?.GetName().Version;
Version assver = new Version(14, 0,0) ;// Assembly.GetEntryAssembly()?.GetName().Version;
if (assver == null) {
return new Version("0.0.0");
}
Expand Down

0 comments on commit bbfe083

Please sign in to comment.