Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source Generator: Use EmbeddedAttribute #1166

Open
badcel opened this issue Feb 1, 2025 · 0 comments
Open

Source Generator: Use EmbeddedAttribute #1166

badcel opened this issue Feb 1, 2025 · 0 comments

Comments

@badcel
Copy link
Member

badcel commented Feb 1, 2025

Starting with Roslyn 4.14 (dotnet 9.) there is the EmbeddedAttriubte which allows a source generator to add an internal marker attribute to the compilation without creating a warning if InternalsVisibleTo is defined in consuming projects: https://github.com/dotnet/roslyn/blob/main/docs/features/incremental-generators.cookbook.md#put-microsoftcodeanalysisembeddedattribute-on-generated-marker-types

Use this API to remove the Subclass attribute from "GObject-2.0" project and add it dynamically from the source generator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant