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
<PackageReference Include="protobuf-native" Version="6.33.4.1" />
<PackageVersion Include="protobuf-native" Version="6.33.4.1" />
<PackageReference Include="protobuf-native" />
paket add protobuf-native --version 6.33.4.1
#r "nuget: protobuf-native, 6.33.4.1"
#:package protobuf-native@6.33.4.1
#addin nuget:?package=protobuf-native&version=6.33.4.1
#tool nuget:?package=protobuf-native&version=6.33.4.1
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/protobufandabslheaders - Static library references for all protobuf and abseil components
WIN32_LEAN_AND_MEANandNOMINMAXpreprocessor definitions- Warning suppression scoped to generated
.pb.ccfiles 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| native | native is compatible. |
| Windows Store | win is compatible. |
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 |