Skip to content

Commit be5c713

Browse files
authored
Merge pull request #29997 from smasher164/virtual-diagnostics
add docs for diagnostics CP0012 and CP0013
2 parents c914625 + da829fc commit be5c713

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
@@ -30,6 +30,8 @@ This reference article lists all the error codes generated by package validation
3030
| CP0009 | A type that was unsealed on one side was annotated as sealed on the other compared side. | Remove the sealed annotation from the type. |
3131
| CP0010 | The underlying type of an enum changed from one side to the other. | Change the underlying type back to what it was previously. |
3232
| CP0011 | The value of a member in an enum changed from one side to the other. | Change the value of the member back to what it was previously. |
33+
| CP0012 | The virtual keyword was removed from a member that was previously virtual. | Add the virtual keyword back to the member. |
34+
| CP0013 | The virtual keyword was added to a member that was previously not virtual. | Remove the virtual keyword from the member. |
3335
| 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 the `AssemblySymbolLoader`. |
3436
| 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>" />`. |
3537
| 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)