-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.PublicApi.props
More file actions
35 lines (29 loc) · 1.6 KB
/
Directory.PublicApi.props
File metadata and controls
35 lines (29 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<Project>
<!--
Public API Surface Tracking Configuration
Include this in projects that expose public APIs to track breaking changes.
Usage: Import this file in your project:
<Import Project="$(MSBuildThisFileDirectory)../../Directory.PublicApi.props" />
-->
<PropertyGroup>
<!-- Enable public API analyzers -->
<EnablePublicApiAnalyzers>true</EnablePublicApiAnalyzers>
<!-- TEMPORARY: Suppressed until PublicAPI.txt files are regenerated after 37-commit update -->
<!-- TODO: Regenerate PublicAPI.txt files and remove RS0016/RS0017 from NoWarn -->
<NoWarn>$(NoWarn);RS0016;RS0017</NoWarn>
<RS0022>warning</RS0022> <!-- Public API with no callers -->
<RS0024>warning</RS0024> <!-- Symbol marked obsolete before shipping -->
<RS0025>warning</RS0025> <!-- Symbol with different case already exists -->
<RS0026>warning</RS0026> <!-- Missing nullable annotations -->
<RS0027>warning</RS0027> <!-- Nullable reference types inconsistency -->
</PropertyGroup>
<ItemGroup>
<!-- Add PublicApiAnalyzers to projects importing this file -->
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="4.14.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<!-- Include the public API tracking files -->
<AdditionalFiles Include="$(MSBuildProjectDirectory)\PublicAPI.Shipped.txt" Condition="Exists('$(MSBuildProjectDirectory)\PublicAPI.Shipped.txt')" />
<AdditionalFiles Include="$(MSBuildProjectDirectory)\PublicAPI.Unshipped.txt" Condition="Exists('$(MSBuildProjectDirectory)\PublicAPI.Unshipped.txt')" />
</ItemGroup>
</Project>