Upgrading Scrutor 1 to 2
Breaking1.12.0 → 2.2.2Breaking3New12Changed2Fixed3
BreakingUpgrade verdict
3 breaking changes.
In plain terms
- Scanning for classes now skips non-public types unless you explicitly ask for them.
- Some old methods that were already marked obsolete have been deleted, so code calling them will no longer compile.
- Code that used Scrutor's extension methods must now import a different namespace.
Must act 3 items need code or config changes
Target frameworks requirement changed in 2.0.0-beta: .NETStandard1.0 → .NETFramework4.5.1, .NETStandard1.0, .NETStandard1.6.
What you must change
Breaking3
Makes AddClasses add only public types by default.
AddClassesRemoves obsolete methods.
Moves all extension methods under the Microsoft.Extensions.DependencyInjection namespace.
Microsoft.Extensions.DependencyInjection