diff --git a/Stars Assistant/App.axaml.cs b/Stars Assistant/App.axaml.cs index 37fa10b..4e73114 100644 --- a/Stars Assistant/App.axaml.cs +++ b/Stars Assistant/App.axaml.cs @@ -33,7 +33,7 @@ public partial class App : Application } else { - throw new InvalidOperationException("This app supports only Desktop mode."); + base.OnFrameworkInitializationCompleted(); } } } diff --git a/Stars Assistant/Stars Assistant.csproj b/Stars Assistant/Stars Assistant.csproj index a073113..1f7fec1 100644 --- a/Stars Assistant/Stars Assistant.csproj +++ b/Stars Assistant/Stars Assistant.csproj @@ -1,7 +1,7 @@  - Exe + WinExe net8.0 StarsAssistant enable @@ -9,6 +9,7 @@ true app.manifest true + default @@ -16,21 +17,24 @@ - + - + - - - - - + + + + + - - - + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + diff --git a/Stars Assistant/ViewModels/MainWindowViewModel.cs b/Stars Assistant/ViewModels/MainWindowViewModel.cs index 3701acc..0fa9ee5 100644 --- a/Stars Assistant/ViewModels/MainWindowViewModel.cs +++ b/Stars Assistant/ViewModels/MainWindowViewModel.cs @@ -17,8 +17,6 @@ public partial class MainWindowViewModel : ViewModelBase public MainWindowViewModel() { - InitializeCommands(); - using var db = Locator.Current.GetService()!; DbPath = Path.GetFullPath(db.DbPath); diff --git a/Stars Assistant/Views/BuColView.axaml b/Stars Assistant/Views/BuColView.axaml index 341e4ee..1ee2dbc 100644 --- a/Stars Assistant/Views/BuColView.axaml +++ b/Stars Assistant/Views/BuColView.axaml @@ -3,7 +3,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:vm="using:StarsAssistant.ViewModels" - mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" + mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="200" x:Class="StarsAssistant.Views.BuColView" x:DataType="vm:BuColViewModel">