simpleinjector / SimpleInjector

An easy, flexible, and fast Dependency Injection library that promotes best practice to steer developers towards the pit of success.
https://simpleinjector.org
MIT License
1.22k stars 152 forks source link

Mark obsoleted properties UseLoosenedLifestyleMismatchBehavior EnableDynamicAssemblyCompilation as compilation error #1005

Open dotnetjunkie opened 2 months ago

dotnetjunkie commented 2 months ago

The ContainerOptions's EnableDynamicAssemblyCompilation and UseLoosenedLifestyleMismatchBehavior properties are marked as [Obsolete] and their message states:

Will be treated as an error from version 5.6. Will be removed in version 6.0.

Should, therefore, change there flag from error: false to error: true in v5.6