Skip to content

Commit 7372826

Browse files
committed
Fix some warnings
1 parent be9dadc commit 7372826

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

src/.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ dotnet_diagnostic.IDE0083.severity = silent
3737

3838
# IDE0010: Add missing cases
3939
dotnet_diagnostic.IDE0010.severity = silent
40+
41+
# CA1031: Do not catch general exception types
42+
dotnet_diagnostic.CA1031.severity = silent

src/DataGridExtensions/DataGridExtensions.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
22
<PropertyGroup>
3-
<TargetFrameworks>net45;netcoreapp3.0;net5.0-windows</TargetFrameworks>
3+
<TargetFrameworks>net45;netcoreapp3.1;net5.0-windows</TargetFrameworks>
44
<UseWPF>true</UseWPF>
55
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
@@ -36,7 +36,7 @@ The current version supports the following features:
3636
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3737
</PackageReference>
3838
<PackageReference Include="Throttle.Fody" Version="1.7.0" PrivateAssets="All" />
39-
<PackageReference Include="TomsToolbox.Wpf" Version="2.5.3" />
39+
<PackageReference Include="TomsToolbox.Wpf" Version="2.5.5" />
4040
</ItemGroup>
4141
<ItemGroup>
4242
<None Include="..\..\Icon.png" Link="Icon.png" Pack="true" PackagePath="\" />

src/DataGridExtensions/DataGridFilterColumnControl.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,7 @@ internal bool Matches(DataGrid dataGrid, object? item)
362362
return property.GetValue(item);
363363
}
364364
}
365-
#pragma warning disable CA1031 // Do not catch general exception types
366365
catch
367-
#pragma warning restore CA1031 // Do not catch general exception types
368366
{
369367
// not a plain property, fall-back to binding...
370368
}

src/DataGridExtensionsSample/DataGridExtensionsSample.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
<PrivateAssets>all</PrivateAssets>
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2626
</PackageReference>
27-
<PackageReference Include="PropertyChanged.Fody" Version="3.3.3" PrivateAssets="All" />
28-
<PackageReference Include="TomsToolbox.Composition.Ninject" Version="2.5.3" />
29-
<PackageReference Include="TomsToolbox.Wpf.Composition" Version="2.5.3" />
30-
<PackageReference Include="TomsToolbox.Wpf.Composition.AttributedModel" Version="2.5.3" />
31-
<PackageReference Include="TomsToolbox.Wpf.Styles" Version="2.5.3" />
27+
<PackageReference Include="PropertyChanged.Fody" Version="3.4.0" PrivateAssets="All" />
28+
<PackageReference Include="TomsToolbox.Composition.Ninject" Version="2.5.5" />
29+
<PackageReference Include="TomsToolbox.Wpf.Composition" Version="2.5.5" />
30+
<PackageReference Include="TomsToolbox.Wpf.Composition.AttributedModel" Version="2.5.5" />
31+
<PackageReference Include="TomsToolbox.Wpf.Styles" Version="2.5.5" />
3232
</ItemGroup>
3333
<ItemGroup>
3434
<Folder Include="Properties\" />

0 commit comments

Comments
 (0)