Download protobuf-net, source address https://github.com/protobuf-net/protobuf-net/tree/master/src ( note project now do not use vs2019, temporary support is not enough).
Compile the source code.
protogen find the file after compilation.
Run the command protogen.exe --csharp_out =. \ Sample.proto