Skip to content

Commit 760904b

Browse files
committed
Use Microsoft.CodeQuality.Analyzers
Fixes #1620
1 parent 42bc120 commit 760904b

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/Npgsql.Json.NET/Npgsql.Json.NET.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@
1919
<RepositoryType>git</RepositoryType>
2020
<RepositoryUrl>git://github.com/npgsql/npgsql</RepositoryUrl>
2121
<Deterministic>true</Deterministic>
22+
<!-- This is somehow important for Microsoft.CodeQuality.Analyzers -->
23+
<Features>IOperation</Features>
2224
</PropertyGroup>
2325

2426
<ItemGroup>
2527
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
28+
<PackageReference Include="Microsoft.CodeQuality.Analyzers" Version="2.3.0-beta1" PrivateAssets="All" />
2629
</ItemGroup>
2730

2831
<ItemGroup>

src/Npgsql.NodaTime/Npgsql.NodaTime.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,13 @@
1919
<RepositoryType>git</RepositoryType>
2020
<RepositoryUrl>git://github.com/npgsql/npgsql</RepositoryUrl>
2121
<Deterministic>true</Deterministic>
22+
<!-- This is somehow important for Microsoft.CodeQuality.Analyzers -->
23+
<Features>IOperation</Features>
2224
</PropertyGroup>
2325

2426
<ItemGroup>
2527
<PackageReference Include="NodaTime" Version="2.1.0" />
28+
<PackageReference Include="Microsoft.CodeQuality.Analyzers" Version="2.3.0-beta1" PrivateAssets="All" />
2629
</ItemGroup>
2730

2831
<ItemGroup>

src/Npgsql/Npgsql.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<RepositoryType>git</RepositoryType>
2121
<RepositoryUrl>git://github.com/npgsql/npgsql</RepositoryUrl>
2222
<Deterministic>true</Deterministic>
23-
<!-- This is somehow important for Microsoft.ApiDesignGuidelines.Analyzers -->
23+
<!-- This is somehow important for Microsoft.CodeQuality.Analyzers -->
2424
<Features>IOperation</Features>
2525
</PropertyGroup>
2626

@@ -31,9 +31,7 @@
3131
<ItemGroup>
3232
<PackageReference Include="System.ValueTuple" Version="4.3.1" />
3333
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.3.0" />
34-
<!--
35-
<PackageReference Include="Microsoft.ApiDesignGuidelines.Analyzers" Version="1.2.0-beta2" PrivateAssets="All" />
36-
-->
34+
<PackageReference Include="Microsoft.CodeQuality.Analyzers" Version="2.3.0-beta1" PrivateAssets="All" />
3735
</ItemGroup>
3836

3937
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">

0 commit comments

Comments
 (0)