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

Unable to build project with this nuget as dependency in .NET 5.0 #152

Open
pedro-elipse opened this issue May 25, 2022 · 3 comments
Open

Comments

@pedro-elipse
Copy link

I'm currently unable to build my project in both .NET 5.0 and .NET 5.0-Windows when using version 3.0+ of this nuget. When I downgrade back to v2.2.12 or change to .NET 6.0, everything goes back to normal.

The error is the following:

CS1705:

Assembly 'Be.Vlaanderen.Basisregisters.Generators.Guid.Deterministic' with identity 'Be.Vlaanderen.Basisregisters.Generators.Guid.Deterministic, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

@NxSoftware
Copy link

NxSoftware commented Jul 5, 2022

I also get this issue when building for netcoreapp3.1 and net6.0 TFMs (the netcoreapp3.1 build fails, while net6.0 succeeds).

CSC : error CS1705: Assembly 'Be.Vlaanderen.Basisregisters.Generators.Guid.Deterministic' with identity 'Be.Vlaanderen.Basisregisters.Generators.Guid.Deterministic, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime' with identity 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

@NxSoftware
Copy link

Digging into this a bit more I suspect that it's because the .csproj file gets all it's settings from https://github.com/Informatievlaanderen/build-pipeline/blob/main/generic/Be.Vlaanderen.Basisregisters.Build.Pipeline.Settings.Library.props which only specifies net6.0 as the sole TargetFramework.

@pedro-elipse
Copy link
Author

I would suggest making a pull request, but judging by all PRs from dependabot still pending and the fact that the last commit was 4 months ago, I'm not sure it would be fruitful. Maybe forking and implementing the changes on your own will be faster and more reliable.

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