Reputation: 64196
Is it possible to make the internal functionality of a common utility library available for usage by all assemblies with my company name so that future assemblies can also use the same version?
[assembly: InternalsVisibleTo("The Company Name Instead")]
Upvotes: 2
Views: 460
Reputation: 18796
No it's not possible.
Specifies that types that are ordinarily visible only within the current assembly are visible to a specified assembly.
The attribute is also sealed so you can't extend it to attempt to implement your own functionality.
It doesn't even support wildcards.
I don't know what the actual problem is you're trying to solve but you may want to reconsider why you need internals visible to, to begin with.
Maybe the utility library can be merged into your assembly using internalize so that you don't have a utility assembly laying around.
Upvotes: 1