GhVersionManager 1.0.2-beta

This is a prerelease version of GhVersionManager.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package GhVersionManager --version 1.0.2-beta
                    
NuGet\Install-Package GhVersionManager -Version 1.0.2-beta
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GhVersionManager" Version="1.0.2-beta" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GhVersionManager" Version="1.0.2-beta" />
                    
Directory.Packages.props
<PackageReference Include="GhVersionManager" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GhVersionManager --version 1.0.2-beta
                    
#r "nuget: GhVersionManager, 1.0.2-beta"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GhVersionManager@1.0.2-beta
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GhVersionManager&version=1.0.2-beta&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=GhVersionManager&version=1.0.2-beta&prerelease
                    
Install as a Cake Tool

GhVersionManager

GhVersionManager is a .NET 7 CLI tool and library for reading and writing version information in Grasshopper .gh and .ghx files. It is designed for automation, CI/CD, and team workflows, and is distributed as a NuGet package for easy integration.


Features

  • Read version from the first panel with NickName "version" in a .gh or .ghx file.
  • Set or update version in that panel, or create it if missing.
  • Interactive console mode for manual workflows.
  • CLI mode for scripting and automation, with clear exit codes for integration.
  • Reusable C# API for .NET projects.
  • Single-file deployment: all dependencies are embedded and loaded at runtime.
  • Windows support (due to Grasshopper/GH_IO dependency).

Usage

As a CLI Tool

Install via NuGet (see nuget.org/packages/GhVersionManager) or download from your CI/CD pipeline.

Print the version from a .gh or .ghx file: GhVersionManager.exe path\to\file.ghx GhVersionManager.exe path\to\file.gh

Set the version: GhVersionManager.exe path\to\file.ghx -v 1.2.3 GhVersionManager.exe path\to\file.gh -v 1.2.3

Interactive mode:
Run without arguments to enter an interactive prompt.

As a .NET Library

Reference the NuGet package in your project:

using GhVersionManager;
string? version = GhVersionService.GetVersion("path/to/file.ghx");
bool ok = GhVersionService.SetVersion("path/to/file.ghx", "1.2.3");

Versioning & Changelog

Current version: 1.0.0-beta (public beta)

Changelog

  • 1.0.0-beta
    • Initial public beta release
    • CLI and interactive modes
    • Read/write version panel in .gh and .ghx files
    • Single-file deployment (no extra DLLs needed)
    • Windows support only

Feedback & Issues

This is a beta release.
Please report bugs, feature requests, or feedback via GitHub Issues.


License

MIT License. See LICENSE.txt for details.


Credits

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4-beta 484 7/3/2025
1.0.3-beta 170 7/3/2025
1.0.2-beta 159 7/3/2025
1.0.1-beta 172 7/3/2025
1.0.0-beta 159 7/1/2025