From 7998a5cb4ba8b32d81f4157d94f6455ccdeb0763 Mon Sep 17 00:00:00 2001 From: Goswin Rothenthal Date: Sun, 23 Feb 2025 23:00:38 +0100 Subject: [PATCH] fix nuget push --- .github/dependabot.yml | 2 +- CHANGELOG.md | 4 ++-- README.md | 4 ++-- Tools/csharp rhino example.csx | 20 ++++++++++++++++++++ 4 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 Tools/csharp rhino example.csx diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a707306..391b878 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,7 +6,7 @@ updates: schedule: interval: "weekly" - # WPF does not build correctly on linux , but Win forms does so dependabot works? + # WPF does not build correctly on linux , but Win forms does, so dependabot works? # Update NuGet packages - package-ecosystem: "nuget" diff --git a/CHANGELOG.md b/CHANGELOG.md index b736455..3d51fad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [0.8.1] - 2025-02-23 -## Changed +## [0.8.2] - 2025-02-23 +### Changed - build and deploy with GitHub Actions - update FsEx to 0.16.0 diff --git a/README.md b/README.md index 6348e63..ee1a2b5 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ However, you can use this library just as well in compiled F#, C#, or VB.net pro First reference the assemblies. ```fsharp -#r "nuget: Rhino.Scripting, 0.9.0" +#r "nuget: Rhino.Scripting, 0.8.2" ``` The main namespace is `Rhino.Scripting`. @@ -72,7 +72,7 @@ First reference the assemblies. ```csharp #r "nuget: FSharp.Core, 6.0.7"// dependency of Rhino.Scripting #r "nuget: FsEx, 0.16.0" // dependency of Rhino.Scripting -#r "nuget: Rhino.Scripting, 0.9.0" +#r "nuget: Rhino.Scripting, 0.8.2" ``` The main namespace is `Rhino.Scripting`. The main class of this library is called `RhinoScriptSyntax` it has all ~900 functions as static methods. diff --git a/Tools/csharp rhino example.csx b/Tools/csharp rhino example.csx new file mode 100644 index 0000000..ee3b3f5 --- /dev/null +++ b/Tools/csharp rhino example.csx @@ -0,0 +1,20 @@ +#r "nuget: FSharp.Core, 6.0.7"// dependency of Rhino.Scripting +#r "nuget: FsEx, 0.16.0" // dependency of Rhino.Scripting +#r "nuget: Rhino.Scripting, 0.8.2" + +using rs = Rhino.Scripting.RhinoScriptSyntax; + +var pt = rs.AddPoint(2.0, 2.0, 2.0); +rs.ObjectLayer(pt, "some new layer", true) ; // createLayerIfMissing=true + +var ob = rs.GetObject("Select an Object"); +rs.ObjectColor(ob, System.Drawing.Color.Blue); + + +System.Console.WriteLine("Hello Rhino.Scripting"); + + + + + +