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

Build versioning failed. If this keeps happening, please report it on GitHub #154

Open
Tony20221 opened this issue Oct 11, 2022 · 5 comments

Comments

@Tony20221
Copy link

I am getting this error for some reason.

"please report it on GitHub". Report what to Github!?
Googling "BuildVersioningErrorCode" bring back zero results.
Because of so little information about this error, there's nothing I can do other than commenting out that line.

Severity Code Description Project File Line Suppression State
Error Build versioning failed. If this keeps happening, please report it on GitHub. InfinityCrawler C:\Users\Tony.nuget\packages\turnersoftware.buildversioning\0.4.0\build\TurnerSoftware.BuildVersioning.targets 73

@Turnerj
Copy link
Member

Turnerj commented Oct 11, 2022

Hey @Tony20221 , thanks for raising this issue!

Is this error happening when you're trying to build Infinity Crawler? For a little bit of background, BuildVersioning is the library of mine that handles the semantic versioning of my various open source projects. The reason the error message is vague is that it triggers when there is an unexpected/unknown error occurring. I haven't actually had the code hit that error which is why I didn't really know what to put into the message.

Any information you can give about your current environment that caused the issue would be helpful! (eg. .NET version, OS version etc)

@Tony20221
Copy link
Author

Tony20221 commented Oct 11, 2022

I was compiling Inifinity Crawler. All I did is downloaded the zip file from Github. Unzipped it. Updated all the Nuget packages.
I am using VS 2022 and Windows 10.
What .NET version? It's whatever your crawler is set to use. Probably .Net 6.0.

My question why is the error message referencing Github? Is your build tool talking to Github?

@Turnerj
Copy link
Member

Turnerj commented Oct 12, 2022

My question why is the error message referencing Github? Is your build tool talking to Github?

The reason it says If this keeps happening, please report it on GitHub is because if someone hits this, I'd want to know about it on GitHub (ie. raising an issue), not that it is talking to GitHub. Think of it this way, that error message is meant to never actually occur so having it appear is very unusual and I'd want to know about it and the best place to tell me is on GitHub.

That said, right now I don't necessarily know why it is happening. I tried throwing an exception from BuildVersioning directly (in my repo for that) but it doesn't give me that error. It makes me think something else is wrong.

Could you run dotnet --list-sdks and let me know what it returns?

@Turnerj
Copy link
Member

Turnerj commented Oct 12, 2022

I should mention, the If this keeps happening part is because I figured if this is hit, that it would be transient and may automatically fix itself on another run etc.

@Tony20221
Copy link
Author

I misread the error message. I thought it said.. report the error to Github. Not report the error on Github.
Anyway, I commented out the line and it compiles fine.

This is the list of sdk's:

2.1.402 [C:\Program Files\dotnet\sdk]
3.0.100-preview8-013656 [C:\Program Files\dotnet\sdk]
3.0.100-preview9-014004 [C:\Program Files\dotnet\sdk]
3.0.100 [C:\Program Files\dotnet\sdk]
3.1.100 [C:\Program Files\dotnet\sdk]
3.1.101 [C:\Program Files\dotnet\sdk]
3.1.201 [C:\Program Files\dotnet\sdk]
3.1.403 [C:\Program Files\dotnet\sdk]
3.1.424 [C:\Program Files\dotnet\sdk]
5.0.103 [C:\Program Files\dotnet\sdk]
5.0.203 [C:\Program Files\dotnet\sdk]
5.0.214 [C:\Program Files\dotnet\sdk]
5.0.303 [C:\Program Files\dotnet\sdk]
5.0.403 [C:\Program Files\dotnet\sdk]
5.0.407 [C:\Program Files\dotnet\sdk]
5.0.408 [C:\Program Files\dotnet\sdk]
6.0.202 [C:\Program Files\dotnet\sdk]
6.0.203 [C:\Program Files\dotnet\sdk]
6.0.305 [C:\Program Files\dotnet\sdk]
6.0.402 [C:\Program Files\dotnet\sdk]

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

2 participants