Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 21 22:30
    thomai-d closed #2123
  • Feb 21 22:29
    thomai-d commented #2123
  • Feb 21 22:13
    thomai-d edited #2123
  • Feb 21 21:24
    gitfool commented on 4294c51
  • Feb 21 21:01

    arturcic on master

    (GH-2120) pushing nuget to GitH… (compare)

  • Feb 21 20:45

    arturcic on master

    (GH-2120) pushing nuget to GitH… (compare)

  • Feb 21 20:28
    gitfool commented #2116
  • Feb 21 20:24
    gitfool commented #2116
  • Feb 21 20:23

    arturcic on master

    (GH-2120) pushing nuget to GitH… (compare)

  • Feb 21 20:19
    arturcic closed #1932
  • Feb 21 20:19
    arturcic commented #1932
  • Feb 21 20:17

    arturcic on master

    (GH-2120) pusing to Git (compare)

  • Feb 21 20:16
    stale[bot] labeled #1932
  • Feb 21 20:16
    stale[bot] commented #1932
  • Feb 21 20:15
    thomai-d opened #2123
  • Feb 21 20:10
    gitfool commented #2116
  • Feb 21 15:15
    asbjornu commented #2121
  • Feb 21 15:15
    asbjornu closed #2121
  • Feb 21 14:23
    realrubberduckdev edited #2122
  • Feb 21 14:18
    realrubberduckdev edited #2122
Karim Garza
@karimgarza
where is that ?
how do i do that
Karim Garza
@karimgarza
Great! that works
Artur
@arturcic
great
Karim Garza
@karimgarza
i did not know that existed
thakn you
Artur
@arturcic
you're welcome
Nikita Kazachkov
@NikitaKazachkov_gitlab
Does GitVersion work with dotnet cli?
There is an example of using GitLab?
Simon Novak
@snovak7
GitVersionTask nuget package tags the binaries
But disable automatic assembly generation
AssemblyInfo that is
Mattias Karlsson
@devlead
@NikitaKazachkov_gitlab yes, use GitVersion tool with .NET Core CLI
https://www.nuget.org/packages/GitVersion.Tool/
Josh Close
@JoshClose
I'm running nuke.build on TeamCity and am getting this error from GitVersion:
Error parsing Infinity value. Path '', line 1, position 1.
this is on ubuntu 18
Mateusz Jędrzejewski
@matilote
Hi there, quick question. Does GitVersion support any arm64 platform?
error : PlatformNotSupportedException: ubuntu.18.04-arm64
Matthias Koch
@matkoch
GitVersion 5.1.2 and 5.1.3 are putting the executable in different directories, netcoreapp3.0 and netcoreapp3.1. This is not really compliant with semantic versioning.
For simplicity I think you would do better to keep putting them into x.0 ... afaik the runtime can execute any of the other minor-compiled executables.
And on another note, what about GitTools/GitVersion#2000 ? This blew up so many times recently for various reasons.
Bastian Schmidt
@batzen
Hi there.
I just added GitVersionTask to my project.
Everything works fine on my machine but on appveyor i getC:\Users\appveyor\.nuget\packages\gitversiontask\5.1.3\build\GitVersionTask.targets(10,9): error : FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. Could not find or load a specific file. (0x80131621)
Anyone knows why that only happens on appveyor and what i am doing wrong?
Simon Novak
@snovak7
What if you add explicit reference to 12 in csproj?
Bastian Schmidt
@batzen
I added no reference to newtonsoft as my lib does not need it and gitversiontask is supposed to be a build task or?
Simon Novak
@snovak7
Yes, but you could add build type reference
CI environments are isolated so you don’t packages preinstalled, like on local computer
If you have other projects which use newtonsoft.json
Have*
Bastian Schmidt
@batzen
Tried that just now. Didn't help...
Simon Novak
@snovak7
What if you take older version?
Bastian Schmidt
@batzen
That won't help either as i just deleted all cached versions of newtonsoft.json on my local machine and gitversiontask still works...
Simon Novak
@snovak7
What about dotnet version ?
Bastian Schmidt
@batzen
it's the same on appveyor and my machine
both invoked msbuild versions are Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Core
Bastian Schmidt
@batzen
Got it to work by setting WriteVersionInfoToBuildLog to false
That setting is false by default on a local machine
Even though i couldn't reproduce the issue locally by setting it to true...
Simon Novak
@snovak7
Cool
Ahmadreza
@ahmad2x4
Hi There, has anyone managed to install GitVersion command line on bitbucket build pipelines. They are Ubuntu and we can only use apt-get
Mattias Karlsson
@devlead

Easiest probably to use .NET Core global tool

dotnet tool install --global GitVersion.Tool --version 5.1.3

https://www.nuget.org/packages/GitVersion.Tool

Ahmadreza
@ahmad2x4
@devlead Thanks will give it a try
Dominik Psenner
@dpsenner

Hiho. I just adopted gitversiontask into a project where I also use github actions to build the project. Running the build on github actions however fails and as far as I grasp, gitversiontask deletes files in the .git/ directory which in turn causes the git repository to become corrupt.

https://github.com/dpsenner/event-sorcery/runs/393843142

Thoughts? Ideas? Am I doing something wrong?

The apparent culprit is:
/home/runner/.nuget/packages/gitversiontask/5.1.3/build/GitVersionTask.targets(10,9): warning : 2020-01-16 19:19:16              WARN [01/16/20 19:19:16:29] Unable to read cache file /home/runner/work/event-sorcery/event-sorcery/.git/gitversion_cache/61BA4200E58C0052BC7002D1FE8C8D7E6C5D701C.yml, deleting it.
Dominik Psenner
@dpsenner
Pushing another commit and building that apparently worked. The only change was updated dependencies. Flaky code?
Rebuilding the same commit failed. Flaky.
Dominik Psenner
@dpsenner
Appears I am able to reliably work around this by invoking dotnet publish -maxcpucount:1 .. parallelizing the build breaks GitVersionTask.
Dennis Doomen
@ddoomen_twitter
What if I want to include the metadata number in the number generated for release- branches and take into account the tag. Is this possible?
Dennis Doomen
@ddoomen_twitter
Because I think SemVer 2.0 supports something like 1.2.0-rc.2+34