This PR delays the default of ReflectionFree until the .target files, so the user project's PublishAot value can influence the default chosen for ReflectionFree.
Since AOT apps require ReflectionFree to be useful, this seems like a helpful default.
Fixes #17361
Checklist
[ ] Test cases added
[ ] Release notes entry updated:
Please make sure to add an entry with short succinct description of the change as well as link to this pull request to the respective release notes file, if applicable.
Release notes files:
If anything under src/Compiler has been changed, please make sure to make an entry in docs/release-notes/.FSharp.Compiler.Service/<version>.md, where <version> is usually "highest" one, e.g. 42.8.200
If language feature was added (i.e. LanguageFeatures.fsi was changed), please add it to docs/releae-notes/.Language/preview.md
If a change to FSharp.Core was made, please make sure to edit docs/release-notes/.FSharp.Core/<version>.md where version is "highest" one, e.g. 8.0.200.
Information about the release notes entries format can be found in the documentation.
Example:
Description
This PR delays the default of ReflectionFree until the .target files, so the user project's PublishAot value can influence the default chosen for ReflectionFree.
Since AOT apps require ReflectionFree to be useful, this seems like a helpful default.
Fixes #17361
Checklist
[ ] Release notes entry updated: