diff --git a/Aaru.CommonTypes.csproj b/Aaru.CommonTypes.csproj index a3f96dd..99ce1c5 100644 --- a/Aaru.CommonTypes.csproj +++ b/Aaru.CommonTypes.csproj @@ -14,8 +14,8 @@ Aaru Data Preservation Suite Aaru.CommonTypes $(Version) - net7.0 - 11 + net8.0 + 12 Contains common types defined by the Aaru Data Preservation Suite. https://github.com/aaru-dps/ MIT @@ -45,7 +45,7 @@ - + diff --git a/Metadata/Statistics.cs b/Metadata/Statistics.cs index 2326518..3c09941 100644 --- a/Metadata/Statistics.cs +++ b/Metadata/Statistics.cs @@ -264,8 +264,9 @@ public class MediaStats [XmlAttribute] public bool real; /// Media type - [XmlAttribute] - public string type; + [XmlAttribute(AttributeName = "type")] + [JsonPropertyName("type")] + public string MediaType; /// Number of times it has been found [XmlText] public long Value;