Skip to content

Commit 94e57da

Browse files
authored
Fixes build warnings (#2647)
Fixes build warnings caused by updated centralized package management changes. https://devblogs.microsoft.com/nuget/introducing-central-package-management/ Also fixes flaky test
1 parent 1317db4 commit 94e57da

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

MaterialDesignThemes.UITests/WPF/Buttons/OutlineButtonTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ public async Task OutlinedButton_BorderCanBeOverridden()
5353

5454
//Act
5555
Thickness borderThickness = await internalBorder.GetBorderThickness();
56-
SolidColorBrush? borderBrush = (await internalBorder.GetBorderBrush()) as SolidColorBrush;
56+
Color? borderBrush = await internalBorder.GetBorderBrushColor();
5757

5858
//Assert
5959
Assert.Equal(new Thickness(5), borderThickness);
60-
Assert.Equal(Colors.Red, borderBrush?.Color);
60+
Assert.Equal(Colors.Red, borderBrush);
6161

6262
recorder.Success();
6363
}

MaterialDesignToolkit.Full.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
3535
MaterialDesignColors.nuspec = MaterialDesignColors.nuspec
3636
MaterialDesignThemes.MahApps.nuspec = MaterialDesignThemes.MahApps.nuspec
3737
MaterialDesignThemes.nuspec = MaterialDesignThemes.nuspec
38+
nuget.config = nuget.config
3839
README.md = README.md
3940
EndProjectSection
4041
EndProject

nuget.config

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
5+
<clear />
6+
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
7+
</packageSources>
8+
<packageSourceMapping>
9+
<!-- key value for <packageSource> should match key values from <packageSources> element -->
10+
<packageSource key="nuget">
11+
<package pattern="*" />
12+
</packageSource>
13+
</packageSourceMapping>
14+
</configuration>

0 commit comments

Comments
 (0)