-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish as .NET Core Global Tool #1464
Comments
What about naming the package as |
The command would be just |
According to https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools it could be run either way depending on how it's written! I'd favour @arturcic - this would definitely be a welcomed PR but you are right those issues you linked are high on the agenda right now for obvious reasons |
This is now part of #1422. Try it out with: My personal preference for the tool Package Id to be something shorter and easier to remember though. :) Not a big deal because the end result once it's installed of |
This works for me in Windows but not in Linux (Debian 9). It's the same LibGit2Sharp error I've seen before. I'll try to debug it but I'm a bit out of my depth.
|
please have a look here #1473 |
Well it actually worked fine for me with the official Debian 9 based dotnet:2.1-sdk Docker image. It was failing for me in a newly set up Debian 9 VM. After debugging things it turns out it was actually finding the Unrelated to the error but while I was poking around debugging it I noticed some extra stuff in the package. |
Hi just to voice my support for this, we are changing our build process over to be fully dotnet core compatible so we can build on linux and gitversion is our final hurdle with downloading tools via the In regards to naming we currently use |
Closed by #1528 |
I think it would be a good idea to publish GitVersion as a .NET Core Global Tool.
I'm willing to do the work if it is agreed upon that it is a good idea. I haven't looked into it in detail yet but I assume it would probably need some outstanding work like #1445 and #1422 to get wrapped up first. It would obviously require getting actual stable releases out to nuget.org again. 😄
First order of business would be picking the name of the package. I'm personally pretty confused on what all the various GitVersion related packages already on nuget.org are for so I think some care to pick a good meaningful is important. I like what Cake did in v0.30.0 and suggest
GitVersion.Tool
for the package name. It's not taken but there is an existing GitVersion.Tools which might be confusing.The end result would be easily installing GitVersion on any platform that supports .NET core with the following command:
Then you can run it from anywhere with this command:
The text was updated successfully, but these errors were encountered: