protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

Install protoc from a dotnet global tool

Open lazarofl opened this issue 6 years ago • 4 comments

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

  1. protoc could be called from a dotnet global tool, maintaining it's same syntax.
  2. Package version could be published based on protoc releases.
  3. dotnet global tools works on Windows/Linux/Mac.
  4. 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 👎

lazarofl avatar Nov 26 '18 00:11 lazarofl

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

lazarofl avatar Nov 26 '18 12:11 lazarofl

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. 👍

lazarofl avatar Nov 26 '18 17:11 lazarofl

Jie, feel free to reassign to others as I'm not sure who is the right guy to take this.

BSBandme avatar Nov 26 '18 19:11 BSBandme

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.

github-actions[bot] avatar May 12 '24 10:05 github-actions[bot]

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.

github-actions[bot] avatar May 26 '24 10:05 github-actions[bot]