diff --git a/CommunityToolkit.App.Shared/Pages/GettingStartedPage.xaml b/CommunityToolkit.App.Shared/Pages/GettingStartedPage.xaml index 91bee2b..7da094a 100644 --- a/CommunityToolkit.App.Shared/Pages/GettingStartedPage.xaml +++ b/CommunityToolkit.App.Shared/Pages/GettingStartedPage.xaml @@ -1,4 +1,4 @@ - + + Text="{x:Bind AppVersion}" /> diff --git a/CommunityToolkit.App.Shared/Pages/GettingStartedPage.xaml.cs b/CommunityToolkit.App.Shared/Pages/GettingStartedPage.xaml.cs index 525314a..11e8af2 100644 --- a/CommunityToolkit.App.Shared/Pages/GettingStartedPage.xaml.cs +++ b/CommunityToolkit.App.Shared/Pages/GettingStartedPage.xaml.cs @@ -8,6 +8,8 @@ namespace CommunityToolkit.App.Shared.Pages; public sealed partial class GettingStartedPage : Page { + public string AppVersion => $"Version {Package.Current.Id.Version.Major}.{Package.Current.Id.Version.Minor}"; + public GettingStartedPage() { this.InitializeComponent(); diff --git a/CommunityToolkit.App.Shared/Pages/SettingsPage.xaml b/CommunityToolkit.App.Shared/Pages/SettingsPage.xaml index ab9f842..1213a22 100644 --- a/CommunityToolkit.App.Shared/Pages/SettingsPage.xaml +++ b/CommunityToolkit.App.Shared/Pages/SettingsPage.xaml @@ -73,7 +73,7 @@ - @@ -82,7 +82,7 @@ + Text="{x:Bind AppVersion}" /> diff --git a/CommunityToolkit.App.Shared/Pages/SettingsPage.xaml.cs b/CommunityToolkit.App.Shared/Pages/SettingsPage.xaml.cs index 4e28cd9..0c3ae26 100644 --- a/CommunityToolkit.App.Shared/Pages/SettingsPage.xaml.cs +++ b/CommunityToolkit.App.Shared/Pages/SettingsPage.xaml.cs @@ -2,6 +2,8 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +using Windows.ApplicationModel; + namespace CommunityToolkit.App.Shared.Pages { /// @@ -9,6 +11,8 @@ namespace CommunityToolkit.App.Shared.Pages /// public sealed partial class SettingsPage : Page { + public string AppVersion => $"Version {Package.Current.Id.Version.Major}.{Package.Current.Id.Version.Minor}.{Package.Current.Id.Version.Build}"; + public SettingsPage() { this.InitializeComponent(); diff --git a/ProjectHeads/Head.Uwp.props b/ProjectHeads/Head.Uwp.props index 1a7c35c..55d631b 100644 --- a/ProjectHeads/Head.Uwp.props +++ b/ProjectHeads/Head.Uwp.props @@ -128,7 +128,7 @@ - + all runtime; build; native; contentfiles; analyzers