From 60bcf94014621ebdccdfad179eda0d61d78b6472 Mon Sep 17 00:00:00 2001 From: Andrew Payne Date: Mon, 6 Jan 2025 10:26:10 -0500 Subject: [PATCH 1/3] Fixes Compute-302 --- src/compute.geometry/GeometryEndPoint.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/compute.geometry/GeometryEndPoint.cs b/src/compute.geometry/GeometryEndPoint.cs index a92d69d8..1c21cb35 100644 --- a/src/compute.geometry/GeometryEndPoint.cs +++ b/src/compute.geometry/GeometryEndPoint.cs @@ -40,6 +40,7 @@ public static IEnumerable AllEndPoints { foreach (var customEndpoint in customEndpoints) { + foreach (var endpoint in GeometryEndPoint.Create(customEndpoint.Item2)) { endpoint.UpdatePath(customEndpoint.Item1); @@ -193,21 +194,24 @@ public static List Create(Type t) break; } - // This is the general "catch all" endpoint that attempts to figure out the best routine to call - GeometryEndPoint endpoint = new GeometryEndPoint(t, overloads.ToArray()); - endpoints.Add(endpoint); + if (overloads.Count > 1) + { + // This is the general "catch all" endpoint that attempts to figure out the best routine to call + GeometryEndPoint endpoint = new GeometryEndPoint(t, overloads.ToArray()); + endpoints.Add(endpoint); + } foreach (var overload in overloads) { // generate explicit endpoints for all overloads, even if there are no parameters (see #142) endpoints.Add(new GeometryEndPoint(t, overload)); } - } return endpoints; } + protected static string PrettyString(Type t) { string rc = t.ToString().Replace("&", ""); From cb8d2f8c74f9ec4a681f2fd5c69cc17c2001bda4 Mon Sep 17 00:00:00 2001 From: Andrew Payne Date: Mon, 6 Jan 2025 12:40:41 -0500 Subject: [PATCH 2/3] bumping NET version to 7.0.10 or higher --- src/compute.geometry/compute.geometry.csproj | 8 ++++---- src/rhino.compute/rhino.compute.csproj | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compute.geometry/compute.geometry.csproj b/src/compute.geometry/compute.geometry.csproj index 2f334152..e9b3f9f4 100644 --- a/src/compute.geometry/compute.geometry.csproj +++ b/src/compute.geometry/compute.geometry.csproj @@ -4,7 +4,7 @@ compute.geometry Exe win-x64 - 7.0.0 + 7.0.10 LatestMinor True True @@ -44,8 +44,8 @@ - - - + + + diff --git a/src/rhino.compute/rhino.compute.csproj b/src/rhino.compute/rhino.compute.csproj index d593a377..937b28a6 100644 --- a/src/rhino.compute/rhino.compute.csproj +++ b/src/rhino.compute/rhino.compute.csproj @@ -4,7 +4,7 @@ rhino.compute Exe win-x64 - 7.0.0 + 7.0.10 LatestMinor false favicon.ico From 5a1cc4b57c9f46b1db57817cc117d18f1d2328b5 Mon Sep 17 00:00:00 2001 From: Andrew Payne Date: Mon, 6 Jan 2025 12:56:11 -0500 Subject: [PATCH 3/3] rolling back target framework value --- src/compute.geometry/compute.geometry.csproj | 2 +- src/rhino.compute/rhino.compute.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compute.geometry/compute.geometry.csproj b/src/compute.geometry/compute.geometry.csproj index e9b3f9f4..57e3c067 100644 --- a/src/compute.geometry/compute.geometry.csproj +++ b/src/compute.geometry/compute.geometry.csproj @@ -4,7 +4,7 @@ compute.geometry Exe win-x64 - 7.0.10 + 7.0.0 LatestMinor True True diff --git a/src/rhino.compute/rhino.compute.csproj b/src/rhino.compute/rhino.compute.csproj index 937b28a6..d593a377 100644 --- a/src/rhino.compute/rhino.compute.csproj +++ b/src/rhino.compute/rhino.compute.csproj @@ -4,7 +4,7 @@ rhino.compute Exe win-x64 - 7.0.10 + 7.0.0 LatestMinor false favicon.ico