From 28df3fb207148e8ba79e1a8874c2dad2c6ad8a4f Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 24 Sep 2023 21:48:48 +0100 Subject: [PATCH] Update to .NET 8.0 RC1. --- Aaru.CommonTypes.csproj | 6 +++--- Metadata/Statistics.cs | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Aaru.CommonTypes.csproj b/Aaru.CommonTypes.csproj index a3f96dd66..99ce1c54f 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 232651868..3c09941df 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;