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

parse('')" cannot be evaluated. version string portion was too short or too long #300

Closed
RomainAn opened this issue Aug 10, 2023 · 0 comments · Fixed by #313
Closed

parse('')" cannot be evaluated. version string portion was too short or too long #300

RomainAn opened this issue Aug 10, 2023 · 0 comments · Fixed by #313
Labels

Comments

@RomainAn
Copy link

Hello guys.

We are facing some bug since months but it's not always happening.
So that's why we didn't report it, but recently I do believe we have to report the issue because it's happening more.
When we are building, we are getting:

C:\Users\Owner.nuget\packages\gitinfo\3.0.4\build\GitInfo.targets(226,12): error MSB4184: The expression "[System.Version]::Parse('')" cannot be evaluated. Version string portion was too short or too long.

We have to retry building few times and then it's working fine.

Is there any solution to fix this issue ?

Thank you so much.

Best regards

@RomainAn RomainAn added the bug label Aug 10, 2023
kzu added a commit that referenced this issue Aug 30, 2023
It seems sometimes `git --version` might return something that isn't a valid version number we can parse into major.minor.code.

The warning can be ignored with the code `GI007`.

Fixes #300
@kzu kzu closed this as completed in #313 Aug 30, 2023
kzu added a commit that referenced this issue Aug 30, 2023
It seems sometimes `git --version` might return something that isn't a valid version number we can parse into major.minor.code.

The warning can be ignored with the code `GI007`.

Fixes #300
@devlooped devlooped locked and limited conversation to collaborators Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant