Skip to content

Remove feature binary serialization #1325

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

Merged

Conversation

scott-xu
Copy link
Collaborator

@scott-xu scott-xu commented Feb 16, 2024

The constant FEATURE_BINARY_SERIALIZATION was to help build with .NET Standard 1.3.
Since current all target frameworks support Serialization, we don't need this flag anymore.
See cf85100?diff=split&w=0#diff-e4b38dd57f5fc1250fafcccb6ba71f914244bb03755abeea94cbfc0ea4bbbc90L44

branch scott-xu:remove-FEATURE_BINARY_SERIALIZATION is based on scott-xu:drop-RIPEMD160

@scott-xu
Copy link
Collaborator Author

Close this PR based on https://github.com/dotnet/designs/blob/main/accepted/2020/better-obsoletion/binaryformatter-obsoletion.md
Open question: can we remove [Serialization] attribute for net462? Code will be more consistency but probably no value added in practice.

@scott-xu scott-xu closed this Feb 17, 2024
@Rob-Hague
Copy link
Collaborator

I think we should keep it as it is. You can replace #if FEATURE_BINARY_SERIALIZATION with #if NETFRAMEWORK if you like.

@scott-xu
Copy link
Collaborator Author

Good suggestion.

@scott-xu scott-xu reopened this Feb 17, 2024
@scott-xu scott-xu force-pushed the remove-FEATURE_BINARY_SERIALIZATION branch from 09365c2 to c447a84 Compare February 17, 2024 10:01
@scott-xu scott-xu marked this pull request as ready for review February 18, 2024 04:29
Copy link
Collaborator

@WojciechNagorski WojciechNagorski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@WojciechNagorski WojciechNagorski merged commit e66a032 into sshnet:develop Mar 5, 2024
@scott-xu scott-xu deleted the remove-FEATURE_BINARY_SERIALIZATION branch April 18, 2024 22:04
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

Successfully merging this pull request may close these issues.

3 participants