2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00

Automatic build number. Include in application title text.

This commit is contained in:
Xjph 2021-06-06 13:00:09 -02:30
parent 2d91474002
commit c1b3a610c3
3 changed files with 14 additions and 6 deletions

View File

@ -12,10 +12,14 @@
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<PropertyGroup>
<VersionSuffix>0.0.0.$([System.DateTime]::UtcNow.ToString(mmff))</VersionSuffix>
<AssemblyVersion Condition=" '$(VersionSuffix)' == '' ">0.0.0.1</AssemblyVersion>
<AssemblyVersion Condition=" '$(VersionSuffix)' != '' ">$(VersionSuffix)</AssemblyVersion>
<Version Condition=" '$(VersionSuffix)' == '' ">0.0.1.0</Version>
<Version Condition=" '$(VersionSuffix)' != '' ">$(VersionSuffix)</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Avalonia" Version="0.10.3" />
<PackageReference Include="Avalonia.Controls.DataGrid" Version="0.10.3" />

View File

@ -6,8 +6,8 @@
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="Observatory.UI.Views.CoreView">
<Grid RowDefinitions="30,*,Auto">
<TextBlock Grid.Row="0" VerticalAlignment="Center" Padding="10,0,0,0">
Elite Observatory - v1.0core
<TextBlock Grid.Row="0" VerticalAlignment="Center" Padding="10,0,0,0" Name="Title">
Elite Observatory - v0
</TextBlock>
<TabControl Name="CoreTabs"
Grid.Row="1" Grid.Column="1"

View File

@ -9,8 +9,12 @@ namespace Observatory.UI.Views
{
public CoreView()
{
InitializeComponent();
InitializeComponent();
var titleBlock = this.Find<TextBlock>("Title");
titleBlock.Text = "Elite Observatory Core - v" + System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString();
}
private void InitializeComponent()