-
Notifications
You must be signed in to change notification settings - Fork 17
There are several breaking changes when moving from AutoDI 3.x to 4.x
- Remove the
AutoDI.Fody
NuGet package and replace it with theAutoDI.Build
NuGet package. Going forward this will be the only one that is maintained. - Move any AutoDI configuration from FodyWeavers.xml to assembly attributes. The previous configuration leveraged the FodyWeavers.xml files as a way to configure AutoDI, moving forward the solution will be to configure AutoDI using assembly attributes. All properties and allowed values should directly translate to the attributes listed below.
- Generic configuration like Behaviors, can be set on the
AutoDI.SettingsAttribute
-
Map
andType
configuration can be set using theMapAttribute
-
Assembly
configuration can be set using theIncludeAssemblyAttribute
- Generic configuration like Behaviors, can be set on the
This project (version 3.x and earlier) was originally built using Fody. Starting with version 4.0.0, I moved away from using Fody. This was largely due to the change to Fody's licencing that changed with version 3.3.3. There is now the expectation that all users of Fody (both the authors of Fody weavers and users that consumes a Fody weavers) should become patrons of Fody. Though I am certainly happy to see Fody receive funding to ensure its longevity, I felt this put an additional burden on anyone using AutoDI. With the MIT licensing it would be possible to simply ignore it, and continue to use Fody; however that would go against the spirit of the license. In the end I felt it was best to simply remove Fody and continue moving AutoDI forward without it.