Expanding on /internalize functionality #133
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This isn't an issue, per se, but I couldn't find a better place to put it.
I'm working on a project that involves merging several individual assemblies into a single DLL.
I ran into two problems:
Internalization was pretty braindead: Internalize all types not in the primary assembly.
This created a problem because I had some things like this:
The internalization of Bar and Baz created a mess with Foo.
For various reasons, there were some public methods on Foo weren't appropriate to expose externally, but had to be public when everything was split across multiple assemblies due to various limitations.
I needed a way to change those methods to 'internal' when they no longer needed to be used.
I created a fork for ILRepack here: https://github.com/Stevie-O/il-repack/commits/smartmerge
and added the following features:
Inverted rules (if a type matches the regex, it will be internalized, even if it is in the "main" assembly)
Internalization of individual class members
With a properly constructed line, individual members (properties, fields, methods, events) of a type may be changed to internal.
Well, a better place would be the ILRepack project :)
Gah, I was in the wrong freaking window! I'm sorry, I can't believe I did that.