Having issues setting up Avalonia

Im trying to make a game engine with C# (as a hobby) so to start and since I'm using Linux with VSCode, I chose Avalonia. After installing the packages, the function StartWithClassDesktopLifeTimes is not working because 'AppBuilder' does not contain a definition for 'StartWithClassDesktopLifeTimes' and no accessible. I don't what I did wrong or what extension I am missing.
No description
1 Reply
MrOzwaldMan
MrOzwaldMan2w ago
Nevermind solved that problem new problem arised It's a runtime error
Unhandled exception. Avalonia.Markup.Xaml.XamlLoadException: No precompiled XAML found for MyOwnGameEngine.App, make sure to specify x:Class and include your XAML file as AvaloniaResource
at Avalonia.Markup.Xaml.AvaloniaXamlLoader.Load(Object obj)
at MyOwnGameEngine.App.Initialize() in /home/user/Documents/C# Programming/MyOwnGameEngine/App.xaml.cs:line 11
at Avalonia.AppBuilder.SetupUnsafe()
at Avalonia.AppBuilder.Setup()
at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action`1 lifetimeBuilder)
at MyOwnGameEngine.Program.Main(String[] args) in /home/user/Documents/C# Programming/MyOwnGameEngine/Program.cs:line 18
Unhandled exception. Avalonia.Markup.Xaml.XamlLoadException: No precompiled XAML found for MyOwnGameEngine.App, make sure to specify x:Class and include your XAML file as AvaloniaResource
at Avalonia.Markup.Xaml.AvaloniaXamlLoader.Load(Object obj)
at MyOwnGameEngine.App.Initialize() in /home/user/Documents/C# Programming/MyOwnGameEngine/App.xaml.cs:line 11
at Avalonia.AppBuilder.SetupUnsafe()
at Avalonia.AppBuilder.Setup()
at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action`1 lifetimeBuilder)
at MyOwnGameEngine.Program.Main(String[] args) in /home/user/Documents/C# Programming/MyOwnGameEngine/Program.cs:line 18
nevermind fixed that now im getting build errors here
/home/user/Documents/C# Programming/MyOwnGameEngine/App.xaml(5,10,5,10): Avalonia error AVLN2000: Unable to resolve suitable regular or attached property Mode on type Avalonia.Themes.Fluent:Avalonia.Themes.Fluent.FluentTheme Line 5, position 10. [/home/user/Documents/C# Programming/MyOwnGameEngine/MyOwnGameEngine.csproj]
/home/user/Documents/C# Programming/MyOwnGameEngine/App.xaml(5,10,5,10): Avalonia error AVLN2000: Unable to resolve suitable regular or attached property Mode on type Avalonia.Themes.Fluent:Avalonia.Themes.Fluent.FluentTheme Line 5, position 10. [/home/user/Documents/C# Programming/MyOwnGameEngine/MyOwnGameEngine.csproj]
nvm fixed it what a journey.
Want results from more Discord servers?
Add your server