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
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package ProtoCross --version 0.8.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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, thenPATH, then aGrpc.Toolspackage in your NuGet cache. Install protoc. - For
protocross test:dotnetfor 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
- The README: the language, projects, configuration and the generated API.
- The specification.
- The VS Code extension, for diagnostics, completion and navigation as you type: on the Visual Studio Marketplace and Open VSX.
| Product | Versions 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 |