Azure / Azure/azure-functions-dotnet-worker

Types used in WorkerExtensionStartup must be public

Open
#1,404 2 comments 0 reactions 1 assignee Claimed by @RohitRanjanMS View on GitHub
bug feature: source-metadata-generator supportability: analyzer team-issue
Dominant language
C#
Stars
466
Forks
215
Avg merge
3d 10h
Merged PRs (30d)
7

Description

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`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.