Apache.Thrift.Compiler 0.25.0

dotnet tool install --global Apache.Thrift.Compiler --version 0.25.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 Apache.Thrift.Compiler --version 0.25.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Apache.Thrift.Compiler&version=0.25.0
                    
nuke :add-package Apache.Thrift.Compiler --version 0.25.0
                    

Apache Thrift Compiler

The Apache Thrift IDL compiler, packaged as a .NET tool.

Apache Thrift is a software framework for scalable cross-language services development. It combines a software stack with a code generation engine to build services that work efficiently between C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, Smalltalk, OCaml, Delphi, Go, Rust, Swift and other languages.

This package contains the code generator, thrift, which turns a .thrift interface definition into client and server code. It does not contain a runtime library; those are published separately, for .NET as ApacheThrift.

Install

dotnet tool install --global Apache.Thrift.Compiler
thrift --version

Or pin it for a repository, so that everyone building it uses the same compiler version:

dotnet new tool-manifest      # once per repository
dotnet tool install Apache.Thrift.Compiler
dotnet tool run thrift --version

Use

thrift --gen netstd -out generated tutorial.thrift

See the tutorial and the Thrift IDL reference.

Requirements

The compiler links the shared C++ runtime, so it needs the Microsoft Visual C++ Redistributable (x64), which most Windows machines with development tools already have. If it is missing, thrift reports that and points at https://aka.ms/vs/17/release/vc_redist.x64.exe.

Platforms

This package carries the Windows build of the compiler. On other platforms it installs, because NuGet does not gate on the operating system, but running it reports that and stops.

For Linux and macOS, see Download - most distributions package Thrift, and Homebrew has it as thrift.

Provenance

The executable in this package is built from the Apache Thrift source release of the same version. Releases are voted on by the Apache Thrift PMC; the source release is the official artifact, and this package is a convenience build of it.

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

This package has no dependencies.

Version Downloads Last Updated
0.25.0 86 9/30/2026