File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ public override void Initialize()
20
20
{
21
21
AvaloniaXamlLoader . Load ( this ) ;
22
22
23
+ #if DEBUG
24
+ this . AttachDeveloperTools ( ) ;
25
+ #endif
26
+
23
27
if ( ! Avalonia . Controls . Design . IsDesignMode )
24
28
{
25
29
Styles . Clear ( ) ;
Original file line number Diff line number Diff line change 2
2
using Avalonia . Controls ;
3
3
using Avalonia . Controls . Primitives ;
4
4
using Avalonia . Styling ;
5
+ using AvaloniaUI . DiagnosticsSupport ;
5
6
6
7
namespace SampleApp ;
7
8
@@ -10,9 +11,6 @@ public partial class MainWindow : Window
10
11
public MainWindow ( )
11
12
{
12
13
InitializeComponent ( ) ;
13
- #if DEBUG
14
- this . AttachDevTools ( ) ;
15
- #endif
16
14
}
17
15
18
16
private void Themes_OnSelectionChanged ( object ? sender , SelectionChangedEventArgs e )
Original file line number Diff line number Diff line change 13
13
<PackageReference Include =" Avalonia.Controls.DataGrid" Version =" 11.3.0" />
14
14
<PackageReference Include =" Avalonia.Desktop" Version =" 11.3.0" />
15
15
<PackageReference Include =" Avalonia.Fonts.Inter" Version =" 11.3.0" />
16
- <!-- Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
17
- <PackageReference Condition =" '$(Configuration)' == 'Debug'" Include =" Avalonia.Diagnostics" Version =" 11.3.0" />
18
16
</ItemGroup >
19
17
20
18
<ItemGroup >
21
19
<PackageReference Include =" Avalonia.Svg.Skia" Version =" 11.3.0" />
20
+ <PackageReference Include =" AvaloniaUI.DiagnosticsSupport" Version =" 2.0.3" />
22
21
<PackageReference Include =" CommunityToolkit.Mvvm" Version =" 8.4.0" />
23
22
<!-- <PackageReference Include="Devolutions.AvaloniaTheme.MacOS" Version="2024.12.4" /> -->
24
23
</ItemGroup >
You can’t perform that action at this time.
0 commit comments