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

Compiling code #5757

Closed
djgrech opened this issue Jul 23, 2024 · 5 comments
Closed

Compiling code #5757

djgrech opened this issue Jul 23, 2024 · 5 comments
Labels
question Further information is requested

Comments

@djgrech
Copy link

djgrech commented Jul 23, 2024

What is the question?

I need a feature, and was going to open a PR, but when I tried to build the project Examples.AspNetCore (or any project), the build fails with the below error:

CSC: Error CS1705 : Assembly 'OpenTelemetry.Instrumentation.Http' with identity 'OpenTelemetry.Instrumentation.Http, Version=1.9.0.41, uses 'OpenTelemetry.Api, Version=1.0.0.0 which has a higher version than referenced assembly 'OpenTelemetry.Api' with identity 'OpenTelemetry.Api, Version=0.0.0.0'

CSC: Error CS1705 : Assembly 'OpenTelemetry.Instrumentation.Runtime' with identity 'OpenTelemetry.Instrumentation.Runtime, Version=1.9.0.57 uses 'OpenTelemetry.Api, Version=1.0.0.0 which has a higher version than referenced assembly 'OpenTelemetry.Api' with identity 'OpenTelemetry.Api, Version=0.0.0.0

The master cloned version builds successfully

Both repos are identical, what could be the cause?

Thanks

Additional context

No response

@djgrech djgrech added the question Further information is requested label Jul 23, 2024
@Kielek
Copy link
Contributor

Kielek commented Jul 24, 2024

Could you please describe steps to download the source code?
I suppose that it is outside the Github, and MinVer'sioning is not working correctly.

@djgrech
Copy link
Author

djgrech commented Jul 24, 2024

Basically i cloned the repo: https://github.com/open-telemetry/opentelemetry-dotnet.git, this works
I forked the repo, and cloned the repo and it does not build

Tried it with Visual Studio and Rider, same result

Anything i need to setup on my machine?
Thanks

@Kielek
Copy link
Contributor

Kielek commented Jul 25, 2024

Please fetch tags from the upstream (forked repository). It should solve the calculation issue with MinVer.

git remote add upstream https://github.com/open-telemetry/opentelemetry-dotnet.git
git fetch -p upstream

@djgrech
Copy link
Author

djgrech commented Jul 25, 2024

Thanks seems it solved the problem, thanks for your time and help

@Kielek
Copy link
Contributor

Kielek commented Jul 25, 2024

Looking for your contribution here. If you think that it is worth, feel free to update documentation with contributing to this repository. Closing for now.

@Kielek Kielek closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants