The registered startup types are used in code gen applied to the application project. If they're not public, that will lead to compilation errors in the target.
Two changes should be made:
1 - The source generator should only use public types. Emit a compilation warning so end users know the extension services are not being registered.
2 - An analyzer should enforce the visibility of types used with the WorkerExtensionStartupAttribute
The registered startup types are used in code gen applied to the application project. If they're not public, that will lead to compilation errors in the target.
Two changes should be made:
1 - The source generator should only use public types. Emit a compilation warning so end users know the extension services are not being registered. 2 - An analyzer should enforce the visibility of types used with the
WorkerExtensionStartupAttribute