Avoid exceptions when manifest has more properties than current model

dashboard
Pat Hartl 2023-01-08 12:10:20 -06:00
parent 508150abdc
commit 1e9d2e52c9
3 changed files with 3 additions and 0 deletions

View File

@ -182,6 +182,7 @@ namespace LANCommander.PlaynitePlugin
{
var manifestContents = File.ReadAllText(manifestPath);
var deserializer = new DeserializerBuilder()
.IgnoreUnmatchedProperties()
.WithNamingConvention(PascalCaseNamingConvention.Instance)
.Build();

View File

@ -149,6 +149,7 @@ namespace LANCommander.Controllers
}
var deserializer = new DeserializerBuilder()
.IgnoreUnmatchedProperties()
.WithNamingConvention(PascalCaseNamingConvention.Instance)
.Build();

View File

@ -30,6 +30,7 @@ namespace LANCommander.Services
}
var deserializer = new DeserializerBuilder()
.IgnoreUnmatchedProperties()
.WithNamingConvention(PascalCaseNamingConvention.Instance)
.Build();