Skip to content

Commit 22b051b

Browse files
authored
Merge pull request dotnet#31738 from smasher164/visibility-diagnostic-id
add docs for diagnostics CP0019 and CP0020
2 parents b4168ca + 104d69b commit 22b051b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/fundamentals/package-validation/diagnostic-ids.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ This reference article lists all the error codes generated by package validation
3737
| CP0016 | An attribute was added to a member that previously did not have it. | Remove the attribute from the member. |
3838
| CP0017 | The name of a method's parameter changed from one side to the other. | Change the parameter's name back to what it was previously. |
3939
| CP0018 | The `sealed` keyword was added to an interface member that was previously not sealed. | Remove the `sealed` keyword from the interface member. |
40+
| CP0019 | The visibility of a member was reduced from one side to the other. | Change the member's visibility back to what it was previously. |
41+
| CP0020 | The visibility of a member was expanded from one side to the other. | Change the member's visibility back to what it was previously. |
4042
| CP1001 | A matching assembly could not be found in the search directories. (Not applicable for package validation, only when using API Compat directly.) | Provide the search directory when loading matching assemblies using `AssemblySymbolLoader`. |
4143
| CP1002 | A reference assembly was not found when loading the assemblies to compare in the resolved directories for the current target framework. | Include the directory path where that assembly can be found using the following MSBuild item: `<PackageValidationReferencePath Include="<path>" TargetFramework="<tfm>" />`. |
4244
| CP1003 | There was no search directory provided for the target framework moniker that the package validation is running API Compat for. | Provide the search directory to find references for that target framework using the following MSBuild item: `<PackageValidationReferencePath Include="<path>" TargetFramework="<tfm>" />`.

0 commit comments

Comments
 (0)