Skip to content

Commit

Permalink
fix: version now shown as three places on update form
Browse files Browse the repository at this point in the history
  • Loading branch information
PocketMiner82 committed Mar 30, 2024
1 parent f9ff71d commit 6b1a214
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
3 changes: 1 addition & 2 deletions SolutionInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Reflection;

[assembly: AssemblyVersion("1.2.3")]
[assembly: AssemblyFileVersion("1.2.3")]
[assembly: AssemblyVersion("1.2.3")]
5 changes: 5 additions & 0 deletions pseudocodeIde/pseudocodeIde.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.3.3.4\analyzers\dotnet\cs\Microsoft.CodeAnalysis.Analyzers.dll" />
<Analyzer Include="..\packages\Microsoft.CodeAnalysis.Analyzers.3.3.4\analyzers\dotnet\cs\Microsoft.CodeAnalysis.CSharp.Analyzers.dll" />
</ItemGroup>
<ItemGroup>
<Content Include="..\AutoUpdater.xml">
<Link>AutoUpdater.xml</Link>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.4.1.0\build\net472\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.targets" Condition="Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.4.1.0\build\net472\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
Expand Down
4 changes: 4 additions & 0 deletions pseudocodeIdeUpdater/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using AutoUpdaterDotNET;
using System;
using System.Diagnostics;
using System.Reflection;
using System.Windows.Forms;

namespace pseudocodeIdeUpdater
Expand Down Expand Up @@ -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");

}
Expand Down
5 changes: 5 additions & 0 deletions pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="..\AutoUpdater.xml">
<Link>AutoUpdater.xml</Link>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\Microsoft.Web.WebView2.1.0.1823.32\build\Microsoft.Web.WebView2.targets" Condition="Exists('..\packages\Microsoft.Web.WebView2.1.0.1823.32\build\Microsoft.Web.WebView2.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
Expand Down

0 comments on commit 6b1a214

Please sign in to comment.