Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 866 Bytes

syslib1036.md

File metadata and controls

17 lines (12 loc) · 866 Bytes
title description ms.date f1_keywords
SYSLIB1036 error
Learn about the diagnostic that generates compile-time error SYSLIB1036.
05/07/2021
syslib1036

SYSLIB1036: System.Text.Json source generator encountered an invalid [JsonExtensionData] annotation

The System.Text.Json source generator encountered a property or field annotated with [JsonExtensionData] but whose data type does not implement IDictionary<string, JsonElement>, IDictionary<string, object>, IDictionary<string, JsonNode>, or JsonNode.

Workarounds

Ensure that the data type for any property or field that is annotated with [JsonExtensionData] implements IDictionary<string, JsonElement>, IDictionary<string, object>, IDictionary<string, JsonNode>, or JsonNode.

[!INCLUDE suppress-syslib-warning]