Skip to content

Commit

Permalink
fix (core): fix version number display
Browse files Browse the repository at this point in the history
  • Loading branch information
asv-soft-u01 committed Nov 30, 2023
1 parent 880dfe9 commit 04a676a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Asv.Drones.Gui.Core/CorePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private IAppPathInfo GetAppPathInfo()
private IAppInfo GetAppInfo()
{
var assm = _applicationDataTemplateHost.GetType().Assembly.GetName(); // hack - to get application assembly
var version = assm.Version?.ToString() ?? "0.0.0";
var version = assm.Version != null ? $"{assm.Version.Major}.{assm.Version.Minor}.{assm.Version.Build}" : "0.0.0";
var name = assm.Name ?? "Asv.Drones";
const string author = "https://asv.me/";
const string appUrl = "https://docs.asv.me/";
Expand Down
2 changes: 1 addition & 1 deletion src/Asv.Drones.Gui.Custom.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</ItemGroup>
<PropertyGroup>
<Nullable>enable</Nullable>
<ProductVersion>0.1.0</ProductVersion>
<ProductVersion>0.2.1</ProductVersion>
<AvaloniaVersion>11.0.0</AvaloniaVersion>
<AsvCommonVersion>1.13.1</AsvCommonVersion>
<AsvMavlinkVersion>3.6.0-alpha08</AsvMavlinkVersion>
Expand Down
5 changes: 3 additions & 2 deletions src/Asv.Drones.Gui/Asv.Drones.Gui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
<AssemblyVersion>$(ProductStrongVersion)</AssemblyVersion>
<FileVersion>$(ProductExtendedVersion)</FileVersion>
<AssemblyVersion>$(ProductVersion)</AssemblyVersion>
<FileVersion>$(ProductVersion)</FileVersion>
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU</Platforms>
<Version>$(ProductVersion)</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 04a676a

Please sign in to comment.