Skip to content

Upgrading Scrutor 1 to 2

Breaking1.12.0 → 2.2.2Breaking3New12Changed2Fixed3

BreakingUpgrade verdict

3 breaking changes.

  • 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.
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.

Breaking3
Makes AddClasses add only public types by default.
AddClasses
Removes obsolete methods.
Moves all extension methods under the Microsoft.Extensions.DependencyInjection namespace.
Microsoft.Extensions.DependencyInjection