8000 Source Generator: Use EmbeddedAttribute · Issue #1166 · gircore/gir.core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Source Generator: Use EmbeddedAttribute #1166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact i 7CA4 ts 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

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
0