{"id":17680884,"url":"https://github.com/hanabi1224/protobuf.codegen.buildtask","last_synced_at":"2025-10-29T00:34:01.099Z","repository":{"id":84283737,"uuid":"165973594","full_name":"hanabi1224/Protobuf.CodeGen.BuildTask","owner":"hanabi1224","description":"MSBuild task to automatically generate c# files from .proto files","archived":false,"fork":false,"pushed_at":"2019-01-16T16:22:35.000Z","size":33,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T13:21:25.326Z","etag":null,"topics":["protobuf","protobuf-net","protobuf3","protobuffer"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hanabi1224.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-16T04:28:26.000Z","updated_at":"2022-07-29T04:03:30.000Z","dependencies_parsed_at":"2023-03-12T22:15:13.060Z","dependency_job_id":null,"html_url":"https://github.com/hanabi1224/Protobuf.CodeGen.BuildTask","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanabi1224%2FProtobuf.CodeGen.BuildTask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanabi1224%2FProtobuf.CodeGen.BuildTask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanabi1224%2FProtobuf.CodeGen.BuildTask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanabi1224%2FProtobuf.CodeGen.BuildTask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanabi1224","download_url":"https://codeload.github.com/hanabi1224/Protobuf.CodeGen.BuildTask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249740694,"owners_count":21318702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["protobuf","protobuf-net","protobuf3","protobuffer"],"created_at":"2024-10-24T09:09:38.300Z","updated_at":"2025-10-29T00:33:56.060Z","avatar_url":"https://github.com/hanabi1224.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Protobuf.CodeGen.BuildTask\n\n[![Build status](https://img.shields.io/appveyor/ci/hanabi1224/protobuf-codegen-buildtask/master.svg)](https://ci.appveyor.com/project/hanabi1224/protobuf-codegen-buildtask)\n[![Build Status](https://img.shields.io/travis/hanabi1224/Protobuf.CodeGen.BuildTask/master.svg)](https://travis-ci.org/hanabi1224/Protobuf.CodeGen.BuildTask)\n[![MIT License](https://img.shields.io/github/license/hanabi1224/Protobuf.CodeGen.BuildTask.svg)](https://github.com/hanabi1224/Protobuf.CodeGen.BuildTask/blob/master/LICENSE)\n[![NuGet version](https://buildstats.info/nuget/Protobuf.CodeGen.BuildTask)](https://www.nuget.org/packages/Protobuf.CodeGen.BuildTask)\n====\n\nMSBuild task that automatically uses official protoc binary in [Google.Protobuf.Tools](https://www.nuget.org/packages/Google.Protobuf.Tools/) to generate c# files from .proto files. In order to build the generated c# files, it adds official [Google.Protobuf](https://www.nuget.org/packages/Google.Protobuf/) as indirect reference to your project as well\n\nInstall via [nuget](https://www.nuget.org/packages/Protobuf.CodeGen.BuildTask)\n\nor add below code snippet to your .csproj file\n\nWindows, Linux, OSX are all supported and tested\n\n```\n\u003cItemGroup\u003e\n    \u003cPackageReference Include=\"Protobuf.CodeGen.BuildTask\" Version=\"0.1.2\" \u003e\n        \u003cPrivateAssets\u003eAll\u003c/PrivateAssets\u003e\n    \u003c/PackageReference\u003e\n\u003c/ItemGroup\u003e\n```\n\nThe generated files will be under obj/_ProtobufCodeGen folder, which will be gitignored by default.\n\nThe unit test project [here](https://github.com/hanabi1224/Protobuf.CodeGen.BuildTask/tree/master/test/Protobuf.CodeGen.BuildTask.Tests) is a good example to demonstrate the usage of this package.\n\nAs a side note, all the .proto files are also distributed together with the output dll as embedded resources, which can be inspected by tools like [ILSpy](https://github.com/icsharpcode/ILSpy).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanabi1224%2Fprotobuf.codegen.buildtask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanabi1224%2Fprotobuf.codegen.buildtask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanabi1224%2Fprotobuf.codegen.buildtask/lists"}