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

Fix 17786 - CompileBefore/CompileAfter is lost due to the FSharpSourceCodeCompileOrder target #17791

Merged
merged 4 commits into from
Sep 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/FSharp.Build/Microsoft.FSharp.NetSdk.props
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,18 @@ WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and
<PackageReference>
<GeneratePathProperty>true</GeneratePathProperty>
</PackageReference>

<CompileBefore>
<CompileOrder>CompileBefore</CompileOrder>
</CompileBefore>

<CompileAfter>
<CompileOrder>CompileAfter</CompileOrder>
</CompileAfter>

<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. 😞

</ItemDefinitionGroup>

</Project>
Loading