Skip to content

Build Variables Source Generator #4101

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Conversation

aritchie
Copy link
Collaborator

Resolves #2927

This is the initial implementation of proposed AOT build checks

Features

  • Generates a precompiled list of msbuild properties we were interested in based on various issues within our repo
  • Currently, we only look at PublishTrimmed and PublishAot in our AotHelper
  • Generates module initializer only on runnable targets
  • Ability to disable source generator if user encounters issue

TODO

  • Unit Tests
  • Document ability to disable source generator

@aritchie aritchie marked this pull request as ready for review April 25, 2025 15:08
@aritchie
Copy link
Collaborator Author

Before we release this, I would like to do a beta test to ensure all of the nuget stuff has zero issues. CC: @jamescrosswell

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

Successfully merging this pull request may close these issues.

Generate AotHelper properties at compile time
3 participants