Skip to content

Commit 49a8bd2

Browse files
committed
find GH on Linux, add net9.0
1 parent c5bf5bc commit 49a8bd2

6 files changed

Lines changed: 17 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Change Log
22

3+
## [9.0.7-beta] - 2026-04-10
4+
- Fix broken GH Tests
5+
- Find GH on Linux
6+
- add net9.0 to csproj
7+
38
## [9.0.6-beta] - 2026-04-07
49
- Bump Rhino.Inside to 9.0.26084.13070-beta to better support Linux.
510

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</PropertyGroup>
1616

1717
<PropertyGroup>
18-
<RhinoTestingVersion>9.0.6</RhinoTestingVersion>
18+
<RhinoTestingVersion>9.0.7</RhinoTestingVersion>
1919
<RhinoInsideVersion>9.0.26084.13070-beta</RhinoInsideVersion>
2020
<RhinoAPIVersion>9.0.25350.305-wip</RhinoAPIVersion>
2121
<SourceDir>$(MSBuildThisFileDirectory)src\</SourceDir>

src/Rhino.Testing.Tests.SetupAttribute/Rhino.Testing.Tests.SetupAttribute.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net48;net7.0-windows;net8.0-windows</TargetFrameworks>
3+
<TargetFrameworks>net48;net7.0-windows;net8.0-windows;net9.0</TargetFrameworks>
44
<IsPackable>false</IsPackable>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>

src/Rhino.Testing.Tests.SetupFixture/Rhino.Testing.Tests.SetupFixture.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net48;net7.0-windows;net8.0-windows</TargetFrameworks>
3+
<TargetFrameworks>net48;net7.0-windows;net8.0-windows;net9.0</TargetFrameworks>
44
<IsPackable>false</IsPackable>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>

src/Rhino.Testing.Tests/Rhino.Testing.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>net48;net7.0-windows;net8.0-windows</TargetFrameworks>
3+
<TargetFrameworks>net48;net7.0-windows;net8.0-windows;net9.0</TargetFrameworks>
44
<IsPackable>false</IsPackable>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>

src/Rhino.Testing/_Loaders/PluginLoader.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ static class PluginLoader
1313
{
1414
public static string GetRHPPath(string rhpPath)
1515
{
16+
// Normalize path separators for cross-platform compatibility
17+
rhpPath = rhpPath.Replace('\\', Path.DirectorySeparatorChar);
18+
1619
string rhp = Path.Combine(Configs.Current.RhinoSystemDir, rhpPath);
1720
if (File.Exists(rhp))
1821
{
@@ -60,6 +63,10 @@ public static void LoadRDK()
6063
rdkRhp = GetRHPPath(@"Plug-ins\rdk.rhp");
6164
Rhino.PlugIns.PlugIn.LoadPlugIn(rdkRhp, out Guid _);
6265
}
66+
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
67+
{
68+
//skip for now
69+
}
6370
else
6471
throw new RhinoInsideInitializationException("Failed loading rdk plugin");
6572

@@ -119,7 +126,7 @@ public static void LoadGrasshopper()
119126
rhpPath = GetRHPPath("RhCore.framework/Versions/A/Resources/ManagedPlugIns/GrasshopperPlugin.rhp/GrasshopperPlugin.rhp");
120127
res = PlugIns.PlugIn.LoadPlugIn(rhpPath, out ghId);
121128
}
122-
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
129+
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows) || RuntimeInformation.IsOSPlatform(OSPlatform.Linux) )
123130
{
124131
rhpPath = GetRHPPath(@"Plug-ins\Grasshopper\GrasshopperPlugin.rhp");
125132
res = PlugIns.PlugIn.LoadPlugIn(rhpPath, out ghId);

0 commit comments

Comments
 (0)