Skip to content

Commit fd3dd0c

Browse files
committed
Enable package validation.
Suppress existing by-design compatibility issues.
1 parent 1e833e6 commit fd3dd0c

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

src/Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<RepositoryType>git</RepositoryType>
1414
<RepositoryUrl>https://github.com/mysql-net/MySqlConnector.git</RepositoryUrl>
1515
<DebugType>embedded</DebugType>
16+
<EnablePackageValidation>true</EnablePackageValidation>
1617
<LangVersion>preview</LangVersion>
1718
<AnalysisLevel>latest-all</AnalysisLevel>
1819
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3+
<Suppression>
4+
<DiagnosticId>CP0002</DiagnosticId>
5+
<Target>M:MySqlConnector.MySqlRowUpdatingEventHandler.#ctor(System.Object,System.IntPtr)</Target>
6+
<Left>lib/net6.0/MySqlConnector.dll</Left>
7+
<Right>lib/net7.0/MySqlConnector.dll</Right>
8+
</Suppression>
9+
<Suppression>
10+
<DiagnosticId>CP0002</DiagnosticId>
11+
<Target>M:MySqlConnector.MySqlRowUpdatedEventHandler.#ctor(System.Object,System.IntPtr)</Target>
12+
<Left>lib/net6.0/MySqlConnector.dll</Left>
13+
<Right>lib/net7.0/MySqlConnector.dll</Right>
14+
</Suppression>
15+
<Suppression>
16+
<DiagnosticId>CP0002</DiagnosticId>
17+
<Target>M:MySqlConnector.MySqlInfoMessageEventHandler.#ctor(System.Object,System.IntPtr)</Target>
18+
<Left>lib/net6.0/MySqlConnector.dll</Left>
19+
<Right>lib/net7.0/MySqlConnector.dll</Right>
20+
</Suppression>
21+
<Suppression>
22+
<DiagnosticId>CP0002</DiagnosticId>
23+
<Target>M:MySqlConnector.MySqlRowsCopiedEventHandler.#ctor(System.Object,System.IntPtr)</Target>
24+
<Left>lib/net6.0/MySqlConnector.dll</Left>
25+
<Right>lib/net7.0/MySqlConnector.dll</Right>
26+
</Suppression>
27+
<Suppression>
28+
<DiagnosticId>CP0008</DiagnosticId>
29+
<Target>T:MySqlConnector.MySqlBatchCommandCollection</Target>
30+
<Left>lib/netcoreapp3.1/MySqlConnector.dll</Left>
31+
<Right>lib/net6.0/MySqlConnector.dll</Right>
32+
</Suppression>
33+
<Suppression>
34+
<DiagnosticId>CP0001</DiagnosticId>
35+
<Target>T:System.Data.Common.DbColumn</Target>
36+
<Left>lib/net461/MySqlConnector.dll</Left>
37+
<Right>lib/net471/MySqlConnector.dll</Right>
38+
</Suppression>
39+
<Suppression>
40+
<DiagnosticId>CP0008</DiagnosticId>
41+
<Target>T:MySqlConnector.MySqlDataReader</Target>
42+
<Left>lib/netstandard2.0/MySqlConnector.dll</Left>
43+
<Right>lib/net461/MySqlConnector.dll</Right>
44+
</Suppression>
45+
</Suppressions>

0 commit comments

Comments
 (0)