Skip to content

Commit ac8a128

Browse files
committed
Use own Avalonia App.axaml for headless tests
1 parent ed2f8b0 commit ac8a128

File tree

6 files changed

+23
-4
lines changed

6 files changed

+23
-4
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
33
<Nullable>enable</Nullable>
4-
<AvaloniaVersion>11.3.10</AvaloniaVersion>
4+
<AvaloniaVersion>11.3.11</AvaloniaVersion>
55
</PropertyGroup>
66
</Project>

src/Vocup.Android/Vocup.Android.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<ItemGroup>
2929
<PackageReference Include="Avalonia.Android" Version="$(AvaloniaVersion)" />
3030
<PackageReference Include="SkiaSharp" Version="3.119.1" />
31-
<PackageReference Include="Xamarin.AndroidX.Core.SplashScreen" Version="1.2.0" />
31+
<PackageReference Include="Xamarin.AndroidX.Core.SplashScreen" Version="1.2.0.1" />
3232
</ItemGroup>
3333

3434
<ItemGroup>

src/Vocup.WinForms/Vocup.WinForms.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<PackageReference Include="Avalonia.Win32.Interoperability" Version="$(AvaloniaVersion)" />
3535
<PackageReference Include="CsvHelper" Version="33.1.0" />
3636
<PackageReference Include="LostTech.App.Settings" Version="0.5.0" />
37-
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.259">
37+
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.269">
3838
<PrivateAssets>all</PrivateAssets>
3939
</PackageReference>
4040
<!--<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1742" />-->

src/Vocup/Vocup.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
1818
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="AvaloniaUI.DiagnosticsSupport" Version="2.1.1" />
1919
<PackageReference Include="ReactiveUI.Avalonia" Version="11.3.8" />
20-
<PackageReference Include="Svg.Controls.Skia.Avalonia" Version="11.3.9.1" />
20+
<PackageReference Include="Svg.Controls.Skia.Avalonia" Version="11.3.9.2" />
2121
</ItemGroup>
2222

2323

tests/Vocup.UnitTests/App.axaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<Application xmlns="https://github.com/avaloniaui"
2+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
3+
x:Class="Vocup.UnitTests.App">
4+
<Application.Styles>
5+
<FluentTheme />
6+
</Application.Styles>
7+
</Application>

tests/Vocup.UnitTests/App.axaml.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using Avalonia;
2+
using Avalonia.Markup.Xaml;
3+
4+
namespace Vocup.UnitTests;
5+
6+
public class App : Application
7+
{
8+
public override void Initialize()
9+
{
10+
AvaloniaXamlLoader.Load(this);
11+
}
12+
}

0 commit comments

Comments
 (0)