NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #195 most downloaded on NuGet
Register services using assembly scanning and a fluent API.
Latest stable
7.0.0
Last release 12 months ago
24 Nov 2025
Release timing varies
gaps range from 3 weeks to 1.5 years
Most releases are documented
notes for 36 of 47 stable releases
3 versions withdrawn
withdrawn after publishing
127 years old
53 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
Add Sponsors section to README by @khellang in https://github.com/khellang/Scrutor/pull/255
Full Changelog: https://github.com/khellang/Scrutor/compare/v6.1.0...v7.0.0
Allow class filter to opt-in to compiler generated types by @ode2code95 in https://github.com/khellang/Scrutor/pull/253
Full Changelog: https://github.com/khellang/Scrutor/compare/v6.0.1...v6.1.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
AddClasses method registers only public classes by @tomaszprasolek in https://github.com/khellang/Scrutor/pull/247
Full Changelog: https://github.com/khellang/Scrutor/compare/v6.0.0...v6.0.1
Reapplied breaking change introduced in v5.1.0 as a new major version. From this version, only public types will be included by default, as stated in…
Reapplied breaking change introduced in v5.1.0 as a new major version. From this version, only public types will be included by default, as stated in the documentation.
Full Changelog: https://github.com/khellang/Scrutor/compare/v5.1.2...v6.0.0
Reverted breaking change introduced in v5.1.0. Will be released in new major version.
Reverted breaking change introduced in v5.1.0. Will be released in new major version.
Full Changelog: https://github.com/khellang/Scrutor/compare/v5.1.1...v5.1.2
Fix KeyedService.AnyKey support by @sunghwan2789 in https://github.com/khellang/Scrutor/pull/245
Full Changelog: https://github.com/khellang/Scrutor/compare/v5.1.0...v5.1.1
Extend ILifetimeSelector with a new WithLifetime method that acepts a Func<Type, ServiceLifetime> parameter to map implementation type to service life
IsDecorated method has been made public by @portyanikhin in #242Full Changelog: v5.0.3...v5.1.0
ActivatorUtilities.CreateFactory created breaking change from version 4.2.2 to 5.0.1 by @mesies in https://github.com/khellang/Scrutor/pull/239
Full Changelog: https://github.com/khellang/Scrutor/compare/v5.0.2...v5.0.3
Update DependencyModel to resolve system.text.json vulnerability by @yborektsioglou in https://github.com/khellang/Scrutor/pull/236
Full Changelog: https://github.com/khellang/Scrutor/compare/v5.0.1...v5.0.2
Update TypeSourceSelector.cs by @peterhel in https://github.com/khellang/Scrutor/pull/230
Full Changelog: https://github.com/khellang/Scrutor/compare/v4.2.2...v5.0.1
Deprecated FromCallingAssembly and FromExecutingAssembly as they were misleading by @savornicesei in https://github.com/khellang/Scrutor/pull/222
AsSelfWithInterfaces by @leachdaniel-clark in https://github.com/khellang/Scrutor/pull/228 FromCallingAssembly and FromExecutingAssembly as they were misleading by @savornicesei in https://github.com/khellang/Scrutor/pull/222Full Changelog: https://github.com/khellang/Scrutor/compare/v4.2.2...v5.0.0
Make DecoratedType public by @waynebrantley in https://github.com/khellang/Scrutor/pull/194
Full Changelog: https://github.com/khellang/Scrutor/compare/v4.2.1...v4.2.2
Support for generic ServiceDescriptor from langVersion 11+ by @KoTLiK in https://github.com/khellang/Scrutor/pull/188
Full Changelog: https://github.com/khellang/Scrutor/compare/v4.2.0...v4.2.1
Add AsImplementedInterfaces overload with predicate by @khellang in https://github.com/khellang/Scrutor/pull/166
Full Changelog: https://github.com/khellang/Scrutor/compare/v4.0.0...v4.2.0
Update Microsoft.Extensions.DependencyModel to version 3.1.6 on .NET Standard 2.0 by @KuraiAndras in https://github.com/khellang/Scrutor/pull/163
Full Changelog: https://github.com/khellang/Scrutor/compare/v4.0.0...v4.1.0
Add try catch to MakeGenericType by @lawrencek76 in https://github.com/khellang/Scrutor/pull/139
TypeInfo throughout the libraryFull Changelog: https://github.com/khellang/Scrutor/compare/v3.3.0...v4.0.0
Nothing published for this version
Fixed bug where multiple registrations of the same generic type would lead to multiple levels of decoration. See #125.
Swallow assembly load exceptions when scanning application dependencies. #119
Filter out classes with IsSpecialName, which should include display classes and other compiler-generated types. #108
IsSpecialName, which should include display classes and other compiler-generated types. #108RegistrationStrategy.Throw that throws when encountering existing service registrations. #113Some improvements and bugfixes:
Some improvements and bugfixes:
AsSelfWithInterfaces no longer throws for open generic types. See #84As* methods no longer "forget" the lifetime scope to register. See #55 and #86.Nothing published for this version
Nothing published for this version
Nothing published for this version
Various new features and improvements:
Various new features and improvements:
Fixed bug where open generic types were registered as non-generic interfaces. See #44
Exclude compiler-generated types from scanning. See https://github.com/khellang/Scrutor/issues/42#issuecomment-369618193
Exclude compiler-generated types from scanning. See https://github.com/khellang/Scrutor/issues/42#issuecomment-369618193
Added support for scanning open generic types. See #42
Nothing published for this version
Nothing published for this version
Added new FromAssemblyDependencies method
FromAssemblyDependencies methodFromAssemblyDependencies using the entry assembly in FromApplicationDependencies when loading the DependencyContext fails. See #34Added TryDecorate method with all overloads
TryDecorate method with all overloadsFromCallingAssembly methodFromExecutingAssembly methodFromEntryAssembly methodFromApplicationDependencies methodFromDependencyContext methodMicrosoft.Extensions.DependencyInjection namespaceAddClasses only add public types by defaultFixed a stupid 🐞 with open generic decoration
Added support for decorating open generic services. Thanks to @nicholasham ✨
Added new methods for scanning entry, calling and executing assemblies
Added AddTypes for "scanning" a fixed set of types.
AddTypes for "scanning" a fixed set of types. (#23)Added feature to skip, append or replace existing services (#22). Thanks @adamhathcock!
Added feature to skip, append or replace existing services (#22). Thanks @adamhathcock!
Moved to new dotnet tooling and brought back csproj ✨
Moved to new dotnet tooling and brought back csproj ✨
- Added APIs using Type - Allow auto-wiring decorators
TypeFixed a bug where ServiceDescriptors were reordered when decorating services
ServiceDescriptors were reordered when decorating servicesAdded Decorate extension methods.
Decorate<TService> extension methods.Nothing published for this version
Nothing published for this version
Added convention to add types as all implemented interfaces and self when using ServiceDescriptorAttribute without arguments. (@messerm in #10)
Obsoleted AddFromAttributes, adding UsingAttributes instead.
AddFromAttributes, adding UsingAttributes instead.This means you can now filter classes before you add them using the attributes;
collection.Scan(scan => scan.FromAssemblyOf<ITransientServiceToCombine>()
.AddClasses(classes => classes.AssignableTo<ITransientServiceToCombine>())
.UsingAttributes());
The equivalent to AddFromAttributes (without a delegate argument) would be
collection.Scan(scan => scan.FromAssemblyOf<ITransientServiceToCombine>().AddClasses().UsingAttributes());
Added feature to filter attribute registrations
Fixed bug where multiple attributes were ignored. (@Kharos in #8)
Fixed bug where generic types were registered as implementation types
Added ability to register non-public classes using the publicOnly parameter
publicOnly parameterAdded a new interface convention, AsMatchingInterface - @adamhathcock
AsMatchingInterface - @adamhathcockNothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.