You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently constructors are only processed in types for the main module definition.
As a work around we can include the weaver in the dependant assemblies as well, but this then requires putting in a "none" FodyWeavers.xaml file
<?xml version="1.0" encoding="utf-8" ?>
<Weavers>
<!-- Don't process the types for registration, just doing this for the constructor injection -->
<AutoDIBehavior="None"/>
</Weavers>
It should be possible to declare dependant assemblies with constructors to process (perhaps automatically pick up dependant AutoDI referencing assemblies).
The text was updated successfully, but these errors were encountered:
It is worth noting that the difficulty here being that Fody has additional logic around writing assemblies after they have been modified. We will need to replicate this.
Currently constructors are only processed in types for the main module definition.
As a work around we can include the weaver in the dependant assemblies as well, but this then requires putting in a "none" FodyWeavers.xaml file
It should be possible to declare dependant assemblies with constructors to process (perhaps automatically pick up dependant AutoDI referencing assemblies).
The text was updated successfully, but these errors were encountered: