Skip to content

Commit

Permalink
Increasing minimum framework to net472 (#2663)
Browse files Browse the repository at this point in the history
Attempted fix for flaky test
  • Loading branch information
Keboo authored May 3, 2022
1 parent c92f9a6 commit ac9bed2
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 10 deletions.
2 changes: 1 addition & 1 deletion MaterialDesignColors.Wpf/MaterialDesignColors.Wpf.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<RootNamespace>MaterialDesignColors</RootNamespace>
<AssemblyName>MaterialDesignColors</AssemblyName>
<TargetFrameworks>net452;netcoreapp3.1;net6.0-windows</TargetFrameworks>
<TargetFrameworks>net462;netcoreapp3.1;net6.0-windows</TargetFrameworks>
<UseWPF>true</UseWPF>
<MDIXColorsVersion Condition="$(MDIXColorsVersion) == '' Or $(MDIXColorsVersion) == '*Undefined*'">1.0.1</MDIXColorsVersion>
<AssemblyTitle>MaterialDesignColors.Wpf</AssemblyTitle>
Expand Down
6 changes: 4 additions & 2 deletions MaterialDesignColors.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@
<copyright>$copyright$</copyright>
<tags>WPF XAML Material Design Colour Color UI UX</tags>
<dependencies>
<group targetFramework="net452" />
<group targetFramework="net462" />
<group targetFramework="netcoreapp3.1" />
<group targetFramework="net6.0-windows" />
</dependencies>
</metadata>
<files>
<file src="MaterialDesignColors.Wpf\bin\$configuration$\net452\MaterialDesignColors.*" target="lib\net452" exclude="**\*.json" />
<file src="MaterialDesignColors.Wpf\bin\$configuration$\net452\MaterialDesignColors.*" target="lib\net462" exclude="**\*.json" />
<file src="MaterialDesignColors.Wpf\bin\$configuration$\netcoreapp3.1\MaterialDesignColors.*" target="lib\netcoreapp3.1" exclude="**\*.json" />
<file src="MaterialDesignColors.Wpf\bin\$configuration$\net6.0-windows\MaterialDesignColors.*" target="lib\net6.0-windows" exclude="**\*.json" />
</files>
</package>
10 changes: 8 additions & 2 deletions MaterialDesignThemes.MahApps.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<copyright>$copyright$</copyright>
<tags>WPF XAML MahApps Material Design Theme Colour Color UI UX</tags>
<dependencies>
<group targetFramework="net452">
<group targetFramework="net462">
<dependency id="MaterialDesignColors" version="[1.2.1, 2.0)" />
<dependency id="MaterialDesignThemes" version="[3.0.0, 4.0)" />
<dependency id="MahApps.Metro" version="[2.0.0-alpha0748, 3.0)" />
Expand All @@ -25,10 +25,16 @@
<dependency id="MaterialDesignThemes" version="[3.0.0, 4.0)" />
<dependency id="MahApps.Metro" version="[2.0.0, 3.0)" />
</group>
<group targetFramework="net6.0-windows">
<dependency id="MaterialDesignColors" version="[1.2.1, 2.0)" />
<dependency id="MaterialDesignThemes" version="[3.0.0, 4.0)" />
<dependency id="MahApps.Metro" version="[2.0.0, 3.0)" />
</group>
</dependencies>
</metadata>
<files>
<file src="MaterialDesignThemes.MahApps\bin\$configuration$\net452\MaterialDesignThemes.MahApps.*" target="lib\net452" exclude="**\*.json" />
<file src="MaterialDesignThemes.MahApps\bin\$configuration$\net452\MaterialDesignThemes.MahApps.*" target="lib\net462" exclude="**\*.json" />
<file src="MaterialDesignThemes.MahApps\bin\$configuration$\netcoreapp3.1\MaterialDesignThemes.MahApps.*" target="lib\netcoreapp3.1" exclude="**\*.json" />
<file src="MaterialDesignThemes.MahApps\bin\$configuration$\net6.0-windows\MaterialDesignThemes.MahApps.*" target="lib\net6.0-windows" exclude="**\*.json" />
</files>
</package>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net452;netcoreapp3.1;net6.0-windows</TargetFrameworks>
<TargetFrameworks>net462;netcoreapp3.1;net6.0-windows</TargetFrameworks>
<UseWPF>true</UseWPF>
<MDIXMahAppsVersion Condition="$(MDIXMahAppsVersion) == '' Or $(MDIXMahAppsVersion) == '*Undefined*'">1.0.1</MDIXMahAppsVersion>
<AssemblyTitle>MaterialDesignThemes.MahApps</AssemblyTitle>
Expand Down
10 changes: 9 additions & 1 deletion MaterialDesignThemes.UITests/WPF/DialogHosts/DialogHostTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,15 @@ public async Task OnOpenDialog_OverlayCoversContent()
await closeDialogButton.LeftClick();

var retry = new Retry(5, TimeSpan.FromSeconds(5));
await Wait.For(async () => await overlay.GetVisibility() != Visibility.Visible, retry);
try
{
await Wait.For(async () => await overlay.GetVisibility() != Visibility.Visible, retry);
}
catch(TimeoutException)
{
await closeDialogButton.LeftClick();
await Wait.For(async () => await overlay.GetVisibility() != Visibility.Visible, retry);
}
await testOverlayButton.LeftClick();
await Wait.For(async () => Assert.Equal("Clicks: 2", await resultTextBlock.GetText()), retry);

Expand Down
2 changes: 1 addition & 1 deletion MaterialDesignThemes.Wpf/MaterialDesignThemes.Wpf.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<TargetFrameworks>net452;netcoreapp3.1;net6.0-windows</TargetFrameworks>
<TargetFrameworks>net462;netcoreapp3.1;net6.0-windows</TargetFrameworks>
<UseWPF>true</UseWPF>
<MDIXVersion Condition="$(MDIXVersion) == '' Or $(MDIXVersion) == '*Undefined*'">1.0.1</MDIXVersion>
<AssemblyTitle>MaterialDesignThemes.Wpf</AssemblyTitle>
Expand Down
8 changes: 6 additions & 2 deletions MaterialDesignThemes.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,21 @@
<copyright>$copyright$</copyright>
<tags>WPF XAML Material Design Theme Colour Color UI UX</tags>
<dependencies>
<group targetFramework="net452">
<group targetFramework="net462">
<dependency id="MaterialDesignColors" version="[1.2.1, 2.0)" />
</group>
<group targetFramework="netcoreapp3.1">
<dependency id="MaterialDesignColors" version="[1.2.1, 2.0)" />
</group>
<group targetFramework="net6.0-windows">
<dependency id="MaterialDesignColors" version="[1.2.1, 2.0)" />
</group>
</dependencies>
</metadata>
<files>
<file src="MaterialDesignThemes.Wpf\bin\$configuration$\net452\MaterialDesignThemes.Wpf.*" target="lib\net452" exclude="**\*.json" />
<file src="MaterialDesignThemes.Wpf\bin\$configuration$\net462\MaterialDesignThemes.Wpf.*" target="lib\net462" exclude="**\*.json" />
<file src="MaterialDesignThemes.Wpf\bin\$configuration$\netcoreapp3.1\MaterialDesignThemes.Wpf.*" target="lib\netcoreapp3.1" exclude="**\*.json" />
<file src="MaterialDesignThemes.Wpf\bin\$configuration$\net6.0-windows\MaterialDesignThemes.Wpf.*" target="lib\net6.0-windows" exclude="**\*.json" />
<file src="MaterialDesignThemes.Wpf\Resources\Roboto\*.ttf" target="build\Resources\Roboto" />
<file src="MaterialDesignThemes.Wpf\MaterialDesignThemes.targets" target="build" />
<file src="MaterialDesignThemes.Wpf\VisualStudioToolsManifest.xml" target="tools"/>
Expand Down

0 comments on commit ac9bed2

Please sign in to comment.