protobuf
protobuf copied to clipboard
Install protoc from a dotnet global tool
What language does this apply to? dotnet code generation
Describe the problem you are trying to solve.
protoc is available on protoc-version_number-win32.zip file at releases, so, I have to download it from github, unzip it on a local directory and add path to environment variables to use it.
So, download and install it without a CLI is a pain in the neck.
Describe the solution you'd like
- protoc could be called from a dotnet global tool, maintaining it's same syntax.
- Package version could be published based on protoc releases.
- dotnet global tools works on Windows/Linux/Mac.
- Include dotnet global tools as an option on C# tutorial page
Describe alternatives you've considered
Create a script do download the latest version from github using, for example, wget and tar commands and register path on environment variables. Create a wrapper, as protobuf-net did, with have older versions of protoc.exe on it`s latest release 👎
I've created a dotnet global tool that uses the latest protoc.exe
version as a suggestion for this issue https://github.com/lazarofl/dotnetglobal-protoc
A good alternative to this approach are chocolatey packages that some friends told me, like https://chocolatey.org/packages/protoc, just run choco install protoc
, latest versions are available. 👍
Jie, feel free to reassign to others as I'm not sure who is the right guy to take this.
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.
This issue is labeled inactive
because the last activity was over 90 days ago.
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please reopen it.
This issue was closed and archived because there has been no new activity in the 14 days since the inactive
label was added.