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

Update startup time guidance to not recommend BinaryFormatter #1924

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

jeffhandley
Copy link
Member

@jeffhandley jeffhandley commented Nov 12, 2024

Summary

Update the Startup Time guidance to not recommend using BinaryFormatter. Instead, recommend using the XML Serializer Generator tool (Sgen.exe) for better performance.

I searched through this repo and the only other references I saw to BinaryFormatter are resource files from the samples that indicate data was serialized using BinaryFormatter into the resources. That's probably OK to keep.

Fixes #1551


Internal previews

📄 File 🔗 Preview link
dotnet-desktop-guide/framework/wpf/advanced/application-startup-time.md dotnet-desktop-guide/framework/wpf/advanced/application-startup-time

@jeffhandley jeffhandley requested a review from gewarren November 12, 2024 01:39
@dotnet-policy-service dotnet-policy-service bot added okr-health Content-health KR: Concerns article defects/freshness or build warnings. okr-quality labels Nov 12, 2024
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

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

Thanks @jeffhandley

@adegeo
Copy link
Contributor

adegeo commented Nov 12, 2024

@jeffhandley Does that linked tool work for .NET Framework?

Ahh OK I went to the page.

@adegeo adegeo enabled auto-merge (squash) November 12, 2024 05:18
@adegeo adegeo merged commit 97f506e into main Nov 12, 2024
6 checks passed
@adegeo adegeo deleted the jeffhandley/startup-time-serialization branch November 12, 2024 05:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet-framework/svc okr-health Content-health KR: Concerns article defects/freshness or build warnings. okr-quality wpf/subsvc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't recommend BinaryFormatter
3 participants