Update to .NET 8.0 RC1.

This commit is contained in:
2023-09-24 21:48:48 +01:00
parent 1d4add3282
commit 28df3fb207
2 changed files with 6 additions and 5 deletions

View File

@@ -14,8 +14,8 @@
<Product>Aaru Data Preservation Suite</Product> <Product>Aaru Data Preservation Suite</Product>
<Title>Aaru.CommonTypes</Title> <Title>Aaru.CommonTypes</Title>
<ApplicationVersion>$(Version)</ApplicationVersion> <ApplicationVersion>$(Version)</ApplicationVersion>
<TargetFramework>net7.0</TargetFramework> <TargetFramework>net8.0</TargetFramework>
<LangVersion>11</LangVersion> <LangVersion>12</LangVersion>
<Description>Contains common types defined by the Aaru Data Preservation Suite.</Description> <Description>Contains common types defined by the Aaru Data Preservation Suite.</Description>
<PackageProjectUrl>https://github.com/aaru-dps/</PackageProjectUrl> <PackageProjectUrl>https://github.com/aaru-dps/</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression> <PackageLicenseExpression>MIT</PackageLicenseExpression>
@@ -45,7 +45,7 @@
<PackageReference Include="Macross.Json.Extensions" Version="3.0.0"/> <PackageReference Include="Macross.Json.Extensions" Version="3.0.0"/>
<PackageReference Include="System.ComponentModel.Annotations" Version="6.0.0-preview.4.21253.7"/> <PackageReference Include="System.ComponentModel.Annotations" Version="6.0.0-preview.4.21253.7"/>
<PackageReference Include="System.Security.Principal.Windows" Version="6.0.0-preview.5.21301.5"/> <PackageReference Include="System.Security.Principal.Windows" Version="6.0.0-preview.5.21301.5"/>
<PackageReference Include="System.Text.Json" Version="7.0.1"/> <PackageReference Include="System.Text.Json" Version="8.0.0-rc.1.23419.4" />
<PackageReference Include="System.ValueTuple" Version="4.5.0"/> <PackageReference Include="System.ValueTuple" Version="4.5.0"/>
<PackageReference Include="Unclassified.NetRevisionTask" Version="0.4.3" PrivateAssets="all"/> <PackageReference Include="Unclassified.NetRevisionTask" Version="0.4.3" PrivateAssets="all"/>
</ItemGroup> </ItemGroup>

View File

@@ -264,8 +264,9 @@ public class MediaStats
[XmlAttribute] [XmlAttribute]
public bool real; public bool real;
/// <summary>Media type</summary> /// <summary>Media type</summary>
[XmlAttribute] [XmlAttribute(AttributeName = "type")]
public string type; [JsonPropertyName("type")]
public string MediaType;
/// <summary>Number of times it has been found</summary> /// <summary>Number of times it has been found</summary>
[XmlText] [XmlText]
public long Value; public long Value;