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

Remove un-used IL? #7

Closed
SimonCropp opened this issue Feb 24, 2013 · 3 comments
Closed

Remove un-used IL? #7

SimonCropp opened this issue Feb 24, 2013 · 3 comments

Comments

@SimonCropp
Copy link
Member

It would be good to be ale to remove un-used types and members from reference assemblies to minimise the deployment size of the resultant assembly.

@distantcam
Copy link
Member

That could be dangerous. How would you know a type is unused not just by your package, but the referenced assembly itself?

And what about types invoked through reflection? They would be rare, but still possible.

@SimonCropp
Copy link
Member Author

Wait we are embedding dlls+pdbs as resources, compressing them and then using IL to inject a module initializer that loads them at runtime. I think we stepped over "dangerous" a while back. :)

However II wasnt saying this is a must do. it would just be an interesting challenge. and could be off by default.

and reflection types could be explicitly included with some kind of config.

@SimonCropp
Copy link
Member Author

closed because if anything this should be its own fody addin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants