ProtoCross 0.8.0

dotnet tool install --global ProtoCross --version 0.8.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local ProtoCross --version 0.8.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=ProtoCross&version=0.8.0
                    
nuke :add-package ProtoCross --version 0.8.0
                    

ProtoCross

ProtoCross compiles methods written against protobuf messages into C# and C++. You write each method once, in a small language with defined, tested cross-language semantics, and declare its tests beside it. ProtoCross generates the method and the tests for every backend, and protocross test builds and runs them in each.

extend InvoiceItem {
    fn line_total_cents() -> int64 {
        return quantity * unit_price_cents;
    }
}

Install

dotnet tool install --global ProtoCross

To pin the version a repository builds with, install it as a local tool and run it as dotnet protocross:

dotnet new tool-manifest
dotnet tool install ProtoCross

On .NET 10 you can also run it without installing it: dnx ProtoCross --help.

What it needs

  • .NET 10 or newer. Installing a tool needs the .NET SDK.
  • protoc, to read your schemas. It is found through PROTOCROSS_PROTOC, then PATH, then a Grpc.Tools package in your NuGet cache. Install protoc.
  • For protocross test: dotnet for C#, and CMake, a C++ compiler and protobuf C++ with its CMake package for C++.

Use

protocross pricing.pcross -I protos -o generated
protocross billing/billing.pcproj -o generated
protocross test billing/billing.pcproj -o generated
protocross --help

More

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

This package has no dependencies.

Version Downloads Last Updated
0.8.0 113 10/26/2026