From de67bdc2a2dc847118b757e80335176ef490220f Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 3 Jul 2020 14:50:21 +1000 Subject: [PATCH] Fixing build/tests --- src/Umbraco.Tests/App.config | 104 +++++++++--------- src/Umbraco.Tests/Umbraco.Tests.csproj | 7 +- .../NuCache/DataSource/ContentNestedData.cs | 6 +- .../NuCache/DataSource/CultureVariation.cs | 8 +- .../NuCache/DataSource/PropertyData.cs | 6 +- 5 files changed, 68 insertions(+), 63 deletions(-) diff --git a/src/Umbraco.Tests/App.config b/src/Umbraco.Tests/App.config index 91047ba6a2..4af04827e3 100644 --- a/src/Umbraco.Tests/App.config +++ b/src/Umbraco.Tests/App.config @@ -1,59 +1,59 @@ - - + + - - - - - - - - - - - + + + + + + + + + + + - - - + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - + + + - - + + @@ -94,7 +94,11 @@ - - + + + + + + diff --git a/src/Umbraco.Tests/Umbraco.Tests.csproj b/src/Umbraco.Tests/Umbraco.Tests.csproj index 5518fb5678..cd0868532c 100644 --- a/src/Umbraco.Tests/Umbraco.Tests.csproj +++ b/src/Umbraco.Tests/Umbraco.Tests.csproj @@ -78,7 +78,7 @@ - + 1.8.14 @@ -100,7 +100,9 @@ - + + 4.14.5 + @@ -109,7 +111,6 @@ - diff --git a/src/Umbraco.Web/PublishedCache/NuCache/DataSource/ContentNestedData.cs b/src/Umbraco.Web/PublishedCache/NuCache/DataSource/ContentNestedData.cs index 0ff24980fe..1a49aaaf62 100644 --- a/src/Umbraco.Web/PublishedCache/NuCache/DataSource/ContentNestedData.cs +++ b/src/Umbraco.Web/PublishedCache/NuCache/DataSource/ContentNestedData.cs @@ -29,17 +29,17 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource public string UrlSegment { get; set; } //Legacy properties used to deserialize existing nucache db entries - [DataMember(Order = 3)] + [IgnoreDataMember] [JsonProperty("properties")] [JsonConverter(typeof(CaseInsensitiveDictionaryConverter))] private Dictionary LegacyPropertyData { set { PropertyData = value; } } - [DataMember(Order = 4)] + [IgnoreDataMember] [JsonProperty("cultureData")] [JsonConverter(typeof(CaseInsensitiveDictionaryConverter))] private Dictionary LegacyCultureData { set { CultureData = value; } } - [DataMember(Order = 5)] + [IgnoreDataMember] [JsonProperty("urlSegment")] private string LegacyUrlSegment { set { UrlSegment = value; } } } diff --git a/src/Umbraco.Web/PublishedCache/NuCache/DataSource/CultureVariation.cs b/src/Umbraco.Web/PublishedCache/NuCache/DataSource/CultureVariation.cs index dd3323fa0c..daf60b66ec 100644 --- a/src/Umbraco.Web/PublishedCache/NuCache/DataSource/CultureVariation.cs +++ b/src/Umbraco.Web/PublishedCache/NuCache/DataSource/CultureVariation.cs @@ -27,19 +27,19 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource public bool IsDraft { get; set; } //Legacy properties used to deserialize existing nucache db entries - [DataMember(Order = 4)] + [IgnoreDataMember] [JsonProperty("name")] private string LegacyName { set { Name = value; } } - [DataMember(Order = 5)] + [IgnoreDataMember] [JsonProperty("urlSegment")] private string LegacyUrlSegment { set { UrlSegment = value; } } - [DataMember(Order = 6)] + [IgnoreDataMember] [JsonProperty("date")] private DateTime LegacyDate { set { Date = value; } } - [DataMember(Order = 7)] + [IgnoreDataMember] [JsonProperty("isDraft")] private bool LegacyIsDraft { set { IsDraft = value; } } } diff --git a/src/Umbraco.Web/PublishedCache/NuCache/DataSource/PropertyData.cs b/src/Umbraco.Web/PublishedCache/NuCache/DataSource/PropertyData.cs index b49a781e0c..7a3cb67d50 100644 --- a/src/Umbraco.Web/PublishedCache/NuCache/DataSource/PropertyData.cs +++ b/src/Umbraco.Web/PublishedCache/NuCache/DataSource/PropertyData.cs @@ -38,21 +38,21 @@ namespace Umbraco.Web.PublishedCache.NuCache.DataSource public object Value { get; set; } //Legacy properties used to deserialize existing nucache db entries - [DataMember(Order = 3)] + [IgnoreDataMember] [JsonProperty("culture")] private string LegacyCulture { set => Culture = value; } - [DataMember(Order = 4)] + [IgnoreDataMember] [JsonProperty("seg")] private string LegacySegment { set => Segment = value; } - [DataMember(Order = 5)] + [IgnoreDataMember] [JsonProperty("val")] private object LegacyValue {