Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for processing types in dependant projects. #107

Open
Keboo opened this issue May 14, 2018 · 1 comment
Open

Allow for processing types in dependant projects. #107

Keboo opened this issue May 14, 2018 · 1 comment
Assignees

Comments

@Keboo
Copy link
Owner

Keboo commented May 14, 2018

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 -->
  <AutoDI Behavior="None"/>
</Weavers>

It should be possible to declare dependant assemblies with constructors to process (perhaps automatically pick up dependant AutoDI referencing assemblies).

@Keboo Keboo added this to the 3.2.0 milestone May 14, 2018
@Keboo Keboo self-assigned this May 14, 2018
@Keboo
Copy link
Owner Author

Keboo commented Jun 7, 2018

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.

@Keboo Keboo removed this from the 3.2.0 milestone Jun 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant