Skip to content
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

Building v1.2.3 fails #97

Closed
martijnhoekstra opened this issue Jan 23, 2020 · 11 comments
Closed

Building v1.2.3 fails #97

martijnhoekstra opened this issue Jan 23, 2020 · 11 comments

Comments

@martijnhoekstra
Copy link

Trying to build v1.2.3 fails for me with the following error:

"C:\Users\marti\source\hots\Heroes.ReplayParser\Heroes.ReplayParser.ConsoleApplication\ConsoleApplication.csproj" (default target) (1) ->
"C:\Users\marti\source\hots\Heroes.ReplayParser\Heroes.ReplayParser\Heroes.ReplayParser.csproj" (default target) (2:2) ->
(GetAssemblyVersion target) ->
  C:\Program Files\dotnet\sdk\3.1.101\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.GenerateAssemblyInfo.targets(160,5): error MSB4044: The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion". [C:\Users\marti\source\hots\Heroes.ReplayParser\Heroes.ReplayParser\Heroes.ReplayParser.csproj]

    4 Warning(s)
    1 Error(s)

Time Elapsed 00:00:01.55

I build using MSBuild.exe Heroes.ReplayParser.ConsoleApplication/ConsoleApplication.csproj

@barrett777
Copy link
Owner

GitVersionTask automates versioning by using tags in the Git repo

Your specific error looks like this: GitTools/GitVersion#1557

I'm not sure why it's happening :( It works on my machine heh

@barrett777
Copy link
Owner

It may not yet support dotnet build

https://gitversion.net/docs/usage/msbuild-task

@martijnhoekstra
Copy link
Author

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.

@barrett777
Copy link
Owner

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

@martijnhoekstra
Copy link
Author

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.

@barrett777
Copy link
Owner

Ah try checking out master branch, or any other branch

@barrett777
Copy link
Owner

Did you upgrade .net core recently?

https://stackoverflow.com/questions/59875784/fsharpcoreshippedpackageversion-is-not-a-valid-version-string

Looks like the very latest .net core version 3.1.200-preview-014883 is failing to build (for me as well)

@martijnhoekstra
Copy link
Author

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.

@martijnhoekstra
Copy link
Author

Note that despite this issue being closed, I am still unable to build v1.2.3

@Zemill
Copy link
Contributor

Zemill commented Jan 24, 2020

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

@martijnhoekstra
Copy link
Author

1.2.4 to 1.2.6 build correctly for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants