diff --git a/SolutionInfo.cs b/SolutionInfo.cs index 6da76eb..fd3b4ea 100644 --- a/SolutionInfo.cs +++ b/SolutionInfo.cs @@ -1,4 +1,3 @@ using System.Reflection; -[assembly: AssemblyVersion("1.2.3")] -[assembly: AssemblyFileVersion("1.2.3")] +[assembly: AssemblyVersion("1.2.3")] \ No newline at end of file diff --git a/pseudocodeIde/pseudocodeIde.csproj b/pseudocodeIde/pseudocodeIde.csproj index 04b5839..6e969da 100644 --- a/pseudocodeIde/pseudocodeIde.csproj +++ b/pseudocodeIde/pseudocodeIde.csproj @@ -193,6 +193,11 @@ + + + AutoUpdater.xml + + diff --git a/pseudocodeIdeUpdater/Program.cs b/pseudocodeIdeUpdater/Program.cs index 171a6fc..d9902ac 100644 --- a/pseudocodeIdeUpdater/Program.cs +++ b/pseudocodeIdeUpdater/Program.cs @@ -1,6 +1,7 @@ using AutoUpdaterDotNET; using System; using System.Diagnostics; +using System.Reflection; using System.Windows.Forms; namespace pseudocodeIdeUpdater @@ -39,6 +40,9 @@ static void Main(string[] args) AutoUpdater.ApplicationExitEvent += AutoUpdater_ApplicationExitEvent; AutoUpdater.ExecutablePath = "pseudocode-ide.exe"; + Version assemblyVersion = Assembly.GetExecutingAssembly().GetName().Version; + AutoUpdater.InstalledVersion = new Version($"{assemblyVersion.Major}.{assemblyVersion.Minor}.{assemblyVersion.Build}"); + AutoUpdater.Start("https://raw.githubusercontent.com/PocketMiner82/pseudocode-ide/main/AutoUpdater.xml"); } diff --git a/pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj b/pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj index 8ed90af..4488903 100644 --- a/pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj +++ b/pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj @@ -96,6 +96,11 @@ + + + AutoUpdater.xml + +