Forked from Google Protobuf, optimized and compiled for Unity.
- Open with VS2022:
csharp/src/Google.Protobuf.sln
- Ensure there is NO
net50
inTargetFrameworks
incsharp/src/Google.Protobuf/Google.Protobuf.csproj
- Run
dotnet --list-sdks
in cmd, get the dotnet sdk version - Modify the
version
field inglobal.json
with the dotnet sdk version - Switch VS to
Release
mode and build - The DLLs is generated in
csharp/src/Google.Protobuf/bin/Release/net45
- Copy the DLLs to
Plugins
folder of Unity
Download the same version protoc to compile proto message