bed48a7bb6
* Added BuildTests projects * Added VerifyXamlCompilation build target * Use TargetsTriggerByCompilation for XAML compilation * Add *.binlog to gitignore * VerifyXamlCompilation target: set NuGetPackageRoot * Ensure WpfHybrid build test uses two markup compilation passes * Fail build tests restore immediately if AvaloniaVersion isn't set * Fix "could not extract MVID" for up-to-date builds * Run VerifyXamlCompilation on CI * Add FSharp build test
20 lines
504 B
FSharp
20 lines
504 B
FSharp
namespace BuildTests
|
|
|
|
open Avalonia
|
|
open Avalonia.Controls.ApplicationLifetimes
|
|
open Avalonia.Markup.Xaml
|
|
|
|
type App() =
|
|
inherit Application()
|
|
|
|
override this.Initialize() =
|
|
AvaloniaXamlLoader.Load(this)
|
|
|
|
override this.OnFrameworkInitializationCompleted() =
|
|
match this.ApplicationLifetime with
|
|
| :? IClassicDesktopStyleApplicationLifetime as desktop ->
|
|
desktop.MainWindow <- MainWindow()
|
|
| _ -> ()
|
|
|
|
base.OnFrameworkInitializationCompleted()
|