[Feature Request] Add ability to limit types compiled into reference assemblies #36409
Labels
Area-Compilers
Concept-API
This issue involves adding, removing, clarification, or modification of an API.
Feature Request
InternalAsk
User Story
A single user-facing feature. Can be grouped under an epic.
Milestone
WPF makes extensive use of InternalsVisibleTo in its own builds. However, we don't want these items to show up in reference assemblies. This is because we don't ship a reference assembly for every runtime assembly and the internal surface area generates dangling references to these intentionally excluded assemblies.
We'd like some way of configuring the output of types into a reference assembly, perhaps akin to what GenAPI does with exclusion/inclusion files. At the very least, we'd like to be able to turn off the inclusion of internal surface area via some compiler switch/msbuild property.
Related to dotnet/wpf#932.
The text was updated successfully, but these errors were encountered: