Σημείωμα
Η πρόσβαση σε αυτήν τη σελίδα απαιτεί εξουσιοδότηση. Μπορείτε να δοκιμάσετε να εισέλθετε ή να αλλάξετε καταλόγους.
Η πρόσβαση σε αυτήν τη σελίδα απαιτεί εξουσιοδότηση. Μπορείτε να δοκιμάσετε να αλλάξετε καταλόγους.
The following table shows the diagnostic IDs for System.Text.Json source-generation analyzers in .NET 8 and later versions.
| Diagnostic ID | Description |
|---|---|
SYSLIB1220 |
JsonSourceGenerator encountered a JsonConverterAttribute with an invalid type argument. |
SYSLIB1221 |
JsonSourceGenerator does not support this C# language version. |
SYSLIB1222 |
Constructor annotated with JsonConstructorAttribute is inaccessible. |
SYSLIB1223 |
Attributes deriving from JsonConverterAttribute are not supported by the source generator. |
SYSLIB1224 |
Types annotated with JsonSerializableAttribute must be classes deriving from JsonSerializerContext. |
SYSLIB1225 |
Type includes a ref-like property, a field, or a constructor parameter. |
SYSLIB1226 |
JsonIgnoreCondition.Always is not valid on type-level JsonIgnoreAttribute annotations. |
SYSLIB1227 |
Union case types cannot be unambiguously classified by JSON value type. |
SYSLIB1228 |
Union type shape is not a valid C# union. |
SYSLIB1229 |
Open generic derived type could not be resolved for the polymorphic base type. |
Συνεργαστείτε μαζί μας στο GitHub
Μπορείτε να βρείτε την πηγή για αυτό το περιεχόμενο στο GitHub, όπου μπορείτε επίσης να δημιουργήσετε και να εξετάσετε ζητήματα και αιτήματα έλξης. Για περισσότερες πληροφορίες, ανατρέξτε στον οδηγό συνεργατών.