diff options
| author | Bond_009 <bond.009@outlook.com> | 2023-11-05 02:01:14 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2023-11-05 02:01:14 +0100 |
| commit | a9ef103c95a7460031879726f4afda3013ca6619 (patch) | |
| tree | 3df916041590d163b86730e38aca27afe9285335 /src/Directory.Build.props | |
| parent | 6392a8037f9be3526c350f61372c8fe17ab96937 (diff) | |
Add IDisposableAnalyzers to more projects
Diffstat (limited to 'src/Directory.Build.props')
| -rw-r--r-- | src/Directory.Build.props | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/Directory.Build.props b/src/Directory.Build.props new file mode 100644 index 000000000..ac2726ed5 --- /dev/null +++ b/src/Directory.Build.props @@ -0,0 +1,21 @@ +<Project> + <!-- Sets defaults for all projects --> + + <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" /> + + <!-- Code Analyzers --> + <ItemGroup Condition=" '$(Configuration)' == 'Debug' "> + <PackageReference Include="IDisposableAnalyzers"> + <PrivateAssets>all</PrivateAssets> + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> + </PackageReference> + <PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers"> + <PrivateAssets>all</PrivateAssets> + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> + </PackageReference> + <PackageReference Include="SerilogAnalyzer" PrivateAssets="All" /> + <PackageReference Include="StyleCop.Analyzers" PrivateAssets="All" /> + <PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" PrivateAssets="All" /> + </ItemGroup> + +</Project> |
