Skip to content

Conversation

@KevinRansom
Copy link
Contributor

Fixes: #17786 - CompileBefore/CompileAfter is lost due to the FSharpSourceCodeCompileOrder target

This adds the CompilationOrder metadata as default metadata to CompileBefore/CompileAfter and CompileLast. This ensures that when they are inserted into the Compile/Sources collection the metadata goes with them.

Currently:
image

With this change:
image

@KevinRansom KevinRansom requested a review from a team as a code owner September 25, 2024 19:21
@KevinRansom
Copy link
Contributor Author

@auduchinok let me know if this works for you.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 25, 2024

⚠️ Release notes required, but author opted out

Warning

Author opted out of release notes, check is disabled for this pull request.
cc @dotnet/fsharp-team-msft

@KevinRansom KevinRansom added the NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes label Sep 25, 2024
@KevinRansom KevinRansom added this to the September-2024 milestone Sep 25, 2024
Copy link
Member

@auduchinok auduchinok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KevinRansom Wow, this is such a simple fix! Looks great, thank you very much! 🙂


<CompileLast>
<CompileOrder>CompileLast</CompileOrder>
</CompileLast>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please also add CompileFirst?

I see its usage in FSharpSourceCodeCompileOrder here:

<__Sources Include="@(Compile->WithMetadataValue('CompileOrder', 'CompileFirst'))" />

and in FSharp.Core here:

<Compile Include="prim-types-prelude.fsi" CompileOrder="CompileFirst">

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KevinRansom This hasn't been resolved. 😞

@KevinRansom KevinRansom merged commit 0a5901f into dotnet:main Sep 28, 2024
KevinRansom added a commit to KevinRansom/fsharp that referenced this pull request Oct 4, 2024
vzarytovskii pushed a commit that referenced this pull request Oct 7, 2024
…ore and CompileAfter values (#17838)

* Fix 17786 (#17791)

* CompilerOrder: set metadata for CompileFirst items (#17820)

Co-authored-by: Kevin Ransom (msft) <[email protected]>

* version

---------

Co-authored-by: Eugene Auduchinok <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NO_RELEASE_NOTES Label for pull requests which signals, that user opted-out of providing release notes

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

CompileBefore/CompileAfter is lost due to the FSharpSourceCodeCompileOrder target

3 participants