| 1 | // Copyright (C) Microsoft Corporation. All rights reserved. |
| 2 | |
| 3 | using CommunityToolkit.Mvvm.ComponentModel; |
| 4 | using System.Reflection; |
| 5 | |
| 6 | namespace WslSettings.ViewModels.Settings; |
| 7 | |
| 8 | public partial class AboutViewModel : ObservableRecipient |
| 9 | { |
| 10 | public AboutViewModel() |
| 11 | { |
| 12 | } |
| 13 | |
| 14 | public string VersionDescription |
| 15 | { |
| 16 | get |
| 17 | { |
| 18 | Version version = Assembly.GetExecutingAssembly().GetName().Version!; |
| 19 | return $"{version.Major}.{version.Minor}.{version.Build}"; |
| 20 | } |
| 21 | } |
| 22 | } |