-
-
Notifications
You must be signed in to change notification settings - Fork 835
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 build/target frameworks for .NET 8; remove netcoreapp3.1. #1401
Conversation
In some cases, this was "change a private method to return the concrete type instead of an interface." This seemed reasonable and not breaking.
dotnet/docs#34893 .NET has long been deprecating BinaryFormatter and Serializable items. Analyzers as of .NET 8 are warning about obsolete serialization constructors. Given most of the underpinnings of this mechanism are also being deprecated, it seemed reasonable to include deprecation for that in Autofac. For projects that continue to use AppDomains and need to serialize exceptions over the wire, it's recommended to not upgrade Autofac to this version.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1401 +/- ##
===========================================
- Coverage 78.47% 78.46% -0.02%
===========================================
Files 201 200 -1
Lines 5715 5702 -13
Branches 1169 1168 -1
===========================================
- Hits 4485 4474 -11
+ Misses 716 714 -2
Partials 514 514 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you want to do the major version bump in here, since we'll merge #1397 as well before release?
Good point; there's also breaking change due to the exception serialization thing. I'll add that. |
This updates the build to use .NET 8 and adds targeting for .NET 8 on all assemblies.
DependencyResolutionException
. .NET has been steadily working on deprecating binary serialization and as of .NET 8 things are getting caught by both[Obsolete]
warnings and Roslyn analyzers telling you it's time to move. This both keeps Autofac in line with the trend toward serialization removal and reduces support overhead. People are urged to move away from binary serialization where possible; and where not, it's up to development teams to start creating mechanisms to marshal dependency resolution issues across the wire.