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
The nuget package: https://www.nuget.org/api/v2/package/System.Buffers/4.5.1 has mismatched assembly versions. #47949
Comments
Tagging subscribers to this area: @tannergooding, @pgovind, @GrabYourPitchforks Issue DetailsThe nuget package: https://www.nuget.org/api/v2/package/System.Buffers/4.5.1 has mismatched assembly versions. Which requires binding redirects on the desktop to successfully bind. Download the nuget package : https://www.nuget.org/api/v2/package/System.Buffers/4.5.1 Extract the files:
This is an issue because if I build a library for netstandard2.0, and reference it from an app built for net472 the app needs a binding redirect to correctly execute.
|
Not a direct fix, but if you're targeting .NET Standard and intend compatibility with .NET Framework, your users will have a better experience in general if you multi-target your library for both Rick Strahl has a good writeup on that here, and the same recommendation is given in Microsoft's guidance for library developers here.
|
@saucecontrol , For developers building software that is a plugin, it is very hard to get an app to add the necessary binding redirect. I would suggest that having different version numbers for ref and lib in the same nuget package is just broken. |
Correct, if the ref/lib versions don't match, the binding redirect is necessary on desktop. However, if you multi-target, the
I couldn't agree more, and I said as much over on #26370. You might find that issue informative, if only so you can get a picture of how/why the current broken state came to be ;) |
The nuget package: https://www.nuget.org/api/v2/package/System.Buffers/4.5.1 has mismatched assembly versions.
Which requires binding redirects on the desktop to successfully bind.
Download the nuget package : https://www.nuget.org/api/v2/package/System.Buffers/4.5.1
Extract the files:
use ildasm or some other mechanism to examine the assembly version numbers.
This is an issue because if I build a library for netstandard2.0, and reference it from an app built for net472 the app needs a binding redirect to correctly execute.
The text was updated successfully, but these errors were encountered: