diff --git a/.ci/code/TestRunner/TestRunner.csproj b/.ci/code/TestRunner/TestRunner.csproj
index 8569768..15c737c 100644
--- a/.ci/code/TestRunner/TestRunner.csproj
+++ b/.ci/code/TestRunner/TestRunner.csproj
@@ -2,8 +2,10 @@
Exe
- net8.0
-https://github.com/BHoM/Versioning_Toolkit
+ net8.0-windows
+ true
+ true
+ https://github.com/BHoM/Versioning_Toolkit
enable
enable
diff --git a/.ci/code/Versioning_Test/Datasets/8.3/Datasets.txt b/.ci/code/Versioning_Test/Datasets/8.3/Datasets.txt
index 8d6a4f0..ccfb251 100644
--- a/.ci/code/Versioning_Test/Datasets/8.3/Datasets.txt
+++ b/.ci/code/Versioning_Test/Datasets/8.3/Datasets.txt
@@ -137,6 +137,7 @@ LifeCycleAssessment\WasteRates\ASHRAE Standard Waste Rates
LifeCycleAssessment\WasteRates\RICS Standard Waste Rates
MEP\PlumbingFixtureFlow_LEED
MEP\PlumbingFixtureUsage_LEED
+Planning\Labels\IssueLabels
Revit\FamilyMaps\BHoM Default FamilyMaps
Revit\ParameterMaps\BHoM Default ParameterMaps
Revit\ParameterMaps\BuroHappold Default ParameterMaps
diff --git a/.ci/code/Versioning_Test/Verify/FromJson.cs b/.ci/code/Versioning_Test/Verify/FromJson.cs
index eb40e8e..b689538 100644
--- a/.ci/code/Versioning_Test/Verify/FromJson.cs
+++ b/.ci/code/Versioning_Test/Verify/FromJson.cs
@@ -30,6 +30,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
+using System.Reflection;
using System.Text.RegularExpressions;
namespace BH.Test.Versioning
@@ -43,19 +44,29 @@ public static partial class Verify
public static TestResult FromJsonDatasets(bool testAll = false)
{
string testFolder = @"C:\ProgramData\BHoM\Datasets\TestSets\Versioning";
+ string failureDumpDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
+
+ return FromJsonDatasets(testAll, testFolder, failureDumpDir);
+ }
+
+ /*************************************/
+
+ public static TestResult FromJsonDatasets(bool testAll, string testFolder, string failureDumpDir)
+ {
List versions = new List { "9.3" };
if (testAll)
versions.AddRange(new List { "9.2", "9.1", "9.0", "8.3", "8.2", "8.1", "8.0", "7.3", "7.2", "7.1", "7.0", "6.3", "6.2", "6.1", "6.0", "5.3", "5.2", "5.1", "5.0", "4.3", "4.2", "4.1", "4.0", "3.3" });
string exceptions = "Grasshopper|Rhinoceros";
- string failureDumpDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
- Directory.CreateDirectory(failureDumpDir);
- if (versions.Count == 1)
- Console.WriteLine($"Failures are dumped in {failureDumpDir} directory.");
- else
- Console.WriteLine($"Multiple versions are being tested, failures per each are dumped in a correspondent subfolder of {failureDumpDir} directory.");
-
+ if (!string.IsNullOrWhiteSpace(failureDumpDir))
+ {
+ Directory.CreateDirectory(failureDumpDir);
+ if (versions.Count == 1)
+ Console.WriteLine($"Failures are dumped in {failureDumpDir} directory.");
+ else
+ Console.WriteLine($"Multiple versions are being tested, failures per each are dumped in a correspondent subfolder of {failureDumpDir} directory.");
+ }
// Test all the BHoM versions available
List results = new List();
foreach (string version in versions)
@@ -64,7 +75,7 @@ public static TestResult FromJsonDatasets(bool testAll = false)
if (!string.IsNullOrWhiteSpace(dumpDir) && versions.Count > 1)
dumpDir = Path.Combine(dumpDir, version);
- results.Add(FromJsonDataset(Path.Combine(testFolder, version), exceptions, failureDumpDir));
+ results.Add(FromJsonDataset(Path.Combine(testFolder, version), exceptions, dumpDir));
}
// Generate the result message
@@ -184,7 +195,7 @@ public static TestResult FromJsonDataset(string testFolder, string exceptions =
Directory.CreateDirectory(failureDumpDir);
foreach ((string, List) failure in failures)
{
- File.WriteAllLines(Path.Combine(failureDumpDir, $"{failure.Item1}.txt"), failure.Item2);
+ File.WriteAllLines(Path.Combine(failureDumpDir, $"{failure.Item1}.json"), failure.Item2);
}
}
catch (Exception ex)
diff --git a/BHoMUpgrades/CustomUpgrades/v92.cs b/BHoMUpgrades/CustomUpgrades/v92.cs
index 37470d6..ca7ab59 100644
--- a/BHoMUpgrades/CustomUpgrades/v92.cs
+++ b/BHoMUpgrades/CustomUpgrades/v92.cs
@@ -59,5 +59,25 @@ public static Dictionary UpgradeSearchSettings(Dictionary UpgradeContextElement(Dictionary oldVersion)
+ {
+ if (oldVersion == null)
+ return null;
+
+ Dictionary newVersion = new Dictionary(oldVersion);
+
+ // VisibleCutPolylines became a required constructor parameter once the context elements were made immutable
+ if (!newVersion.ContainsKey("VisibleCutPolylines"))
+ newVersion["VisibleCutPolylines"] = new List