Closed martijnhoekstra closed 4 years ago
GitVersionTask automates versioning by using tags in the Git repo
Your specific error looks like this: https://github.com/GitTools/GitVersion/issues/1557
I'm not sure why it's happening :( It works on my machine heh
It may not yet support dotnet build
I'm not using dotnet build
, I'm using MSBuild.exe Heroes.ReplayParser.ConsoleApplication/ConsoleApplication.csproj
How are you building locally?
It seems that the state of the local git repo is of influence of the build, but I'm not sure how to make that reproducible. It would require checking in your .git
, but I suspect that'll break git.
I just open the solution in Visual Studio and build the project there
I set up a Github Action that just checks out the repo and uses dotnet build
, and that is passing, so I'm sure there's a way to get dotnet build
to work for you as well
I suspect the problem happens when checking out the tag. I receive multiple warnings that it can't find the branch to pull the version number from.
Ah try checking out master
branch, or any other branch
Did you upgrade .net core recently?
Looks like the very latest .net core version 3.1.200-preview-014883 is failing to build (for me as well)
Master builds fine. The problem was with trying to build the tag, when trying to see if I could reproduce the problem I was having with the uploader on the console application of the same version as well.
Note that despite this issue being closed, I am still unable to build v1.2.3
How about the latest build, v1.2.6?
When I download the package as a zip package, it fails to build. But if I pull it down through git, it builds fine. Not a huge issue, just found it interesting
1.2.4 to 1.2.6 build correctly for me.
Trying to build v1.2.3 fails for me with the following error:
I build using
MSBuild.exe Heroes.ReplayParser.ConsoleApplication/ConsoleApplication.csproj