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

assembly references System.Text.Encoding.CodePages, Version=4.0.2.0 #1

Open
jakubmisek opened this issue Feb 24, 2020 · 2 comments
Open

Comments

@jakubmisek
Copy link
Member

project references package System.Text.Encoding.CodePages version 4.3.0 which is alright.

the published nuget is probably built against net46 resulting in reference to assembly System.Text.Encoding.CodePages, Version=4.0.2.0 (package 4.3.0 contains assembly for net46 with version 4.0.2.0) .. this causes anyone using this package on netstandard properly referencing System.Text.Encoding.CodePages 4.3.0 but on platforms != net46 the runtime crashes with FileNotFoundException

@jakubmisek
Copy link
Member Author

happens when calling TryReadFileContent method on a file with a wrong encoding, method tries to lazily initialize CodePages resulting in FileNotFoundException

@jakubmisek
Copy link
Member Author

building for net50 ...

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

1 participant