-
Notifications
You must be signed in to change notification settings - Fork 653
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
4.0.1-beta1-58: dotnet build crashes with error MSB4044: The "GetAssemblyVersion" task was not given a value for the required parameter "NuGetVersion" #1557
Comments
same here. |
Same problem without multitargeting, only netcoreapp22/netstandard20 |
Hey guys, had the same issue, but on version 4.0.0 (not the beta). The reason was I had just created a new project and added Gitversion without ever committing anything to the project. After I created my first commit the issue stopped happening. Possibly not the same issue though. |
Still no fix? |
I have this problem on 4.0.0, but not on 4.0.0-beta0012 |
Can you guys give it a try to this version |
As LibGit2Sharp was upgraded to version 0.26 in #1713, I think this problem is fixed. Please reopen this issue if the problem persists. |
@arturcic The original bug is fixed, thanks. However, it seems like beta4 introduced a new issue: GitVersionTool generates multiple assembly version files. In obj/Debug/<target framework>/ there are three(!) files with This results in many |
Gave you followed these steps? https://gitversion.readthedocs.io/en/latest/usage/msbuild-task/, the |
I guess in your case it's an sdk project, then you should add this |
Thanks for the pointer. In the past it worked without that property. I'll try it tomorrow. |
Well, the The correct way is to set |
I'm still having this issue with my .net core 2.2 web project. i have tried the steps suggested but still getting the same error. Any other suggestions? |
same issue on dot net core 3 project |
This helped me a lot. |
For anyone coming from Google, this was near impossible for me to track down, but it turned out it was simply because all the source files in my project were LF instead of CRLF. Which was the reason why it sometimes worked when doing different git things like git branching, git stashing, etc, but kept re-appearing randomly for some inexplicable reason |
For others coming here because they searched the error message
for me the problem was I was only specifying the That is, I changed this:
Which would give the error, to this:
And that fixed it up for me. |
My project is multi-targeting
net471
andnetcoreapp2.1
. The same error occurs when I build both targets and when I build either one individually.The text was updated successfully, but these errors were encountered: