protobuf-native 6.33.4.1

dotnet add package protobuf-native --version 6.33.4.1
                    
NuGet\Install-Package protobuf-native -Version 6.33.4.1
                    
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="protobuf-native" Version="6.33.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="protobuf-native" Version="6.33.4.1" />
                    
Directory.Packages.props
<PackageReference Include="protobuf-native" />
                    
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 protobuf-native --version 6.33.4.1
                    
#r "nuget: protobuf-native, 6.33.4.1"
                    
#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 protobuf-native@6.33.4.1
                    
#: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=protobuf-native&version=6.33.4.1
                    
Install as a Cake Addin
#tool nuget:?package=protobuf-native&version=6.33.4.1
                    
Install as a Cake Tool

Protobuf C++ DevKit

A complete C++ development kit for Protocol Buffers ready to drop into Visual Studio C++ projects via NuGet.

Contents

Component Details
Protocol Buffers 6.33.4
Abseil 20250814.1
protoc.exe Code generator for .proto files
Static libraries Release and Debug, x64
Headers protobuf + abseil

Requirements

  • Visual Studio 2022 (MSVC v143)
  • x64
  • C++20 or later

Installation

Install via the NuGet Package Manager in Visual Studio, or via the CLI:

Install-Package protobuf-native -Version 6.33.4

Once installed, the .targets file is automatically imported and configures your project with:

  • Include directories for google/protobuf and absl headers
  • Static library references for all protobuf and abseil components
  • WIN32_LEAN_AND_MEAN and NOMINMAX preprocessor definitions
  • Warning suppression scoped to generated .pb.cc files only

Usage

Generating code from .proto files

protoc.exe is located in the tools\ folder of the package:

# Find protoc in your NuGet packages folder
$protoc = "$(nuget locals global-packages -list | ...)\protobuf-native.6.33.4\tools\protoc.exe"

protoc.exe --cpp_out=. your_message.proto

Or add a pre-build step in your .vcxproj to auto-generate .pb.h / .pb.cc files.

Including in code

#include <google/protobuf/message.h>
#include <google/protobuf/descriptor.h>
// or your generated header:
#include "your_message.pb.h"

Adding generated files to your project

Add the generated .pb.cc files to your project as normal source files. Warning suppression is automatically applied to any file whose name ends in .pb.cc.

Build Configuration

Property Value
Triplet x64-windows-static-md
Toolset MSVC v143 (VS 2022 LTSC 17.12)
CRT linkage Dynamic (/MD / /MDd)
Library linkage Static
C++ standard C++20
Built with vcpkg
Product Compatible and additional computed target framework versions.
native native is compatible. 
Windows Store win is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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
6.33.4.1 108 5/19/2026