-
Notifications
You must be signed in to change notification settings - Fork 45
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
Different target frameworks have different assembly version (net45 = 1.0.0.0, netstandard2.0 = 1.1.1.0) #62
Comments
The net45 assembly uses the fixed version number 1.0.0.0 because it is strongly signed, while the netstandard2.0 is not. You'll find discussions on the signing in comments on older issues. |
I assume you are referring to #45 (comment)
That doesn't really prevent you from giving the unsigned assembly the same version as the signed assembly. It's also not clear why you wouldn't sign the netstandard assembly when you do sign the net45 assembly. |
Trying to track this issue down caused us hours of pain recently 😞 This is breaking a real-world dependency scenario:
In this situation, the built MyProject.dll artefact references FParsec v1.0.0.0. This causes runtime issues when trying to use PackageA:
Please can the assembly versions be made to match, or better yet just remove the .NET Framework target from the NuGet package entirely. It's not necessary as there is no .NET Framework-specific code in FParsec from what I can see. |
+1 for removing the net45 target. I'm also struggling with this. |
I'm getting an issue with FParsec 1.1.1, the issue seems to come down to the FParsec package having assemblies with different version numbers for different target frameworks (net45 = 1.0.0.0, netstandard2.0 = 1.1.1.0).
Was it intentional that the net45 assembly has a different version number? It makes very hard to consume a netstandard2.0 library that uses FParsec, from a net472 assembly.
The issue is e.g. seen with Logary 5.0.1 which is netstandard 2.0 library and uses FParsec 1.1.1. We are not able to use that Logary in an .NET Framework project because Logary throws System.IO.FileLoadException on loading Logary.
Originally posted by @brian-reichle in #34 (comment)
The text was updated successfully, but these errors were encountered: