Version
1.56.0
Steps to reproduce
- Clone my repo at https://github.com/nikosdaridis/hattrick-transfers-scraper
- Publish to folder self-contained with Trim unused code enabled
- Run the published executable
Expected behavior
Playwright should launch browser and work normally even in a trimmed .NET 10 publish.
Actual behavior
[FTL] Fatal error: System.InvalidOperationException: Reflection-based serialization has been disabled for this application. Either use the source generator APIs or explicitly configure the 'JsonSerializerOptions.TypeInfoResolver' property.
Additional context
No response
Environment
- Operating System: Windows 11
- CPU: x64
- Browser: [All, Chromium, Firefox, WebKit]
- .NET Version 10.0.x (trimmed publish)