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

Add CompileBefore to Git untracked files consideration #1209

Closed
wants to merge 1 commit into from
Closed

Add CompileBefore to Git untracked files consideration #1209

wants to merge 1 commit into from

Conversation

Smaug123
Copy link

SetEmbeddedFilesFromSourceControlManagerUntrackedFiles only considers files if they're in @(Compile). In an F# project, TargetFrameworkMonikerAssemblyAttributesPath is not in @(Compile) but is instead in @CompileBefore. The result is that the F# compiler never even attempts to embed obj/Release/netstandard2.0/.NETStandard,Version=v2.0.AssemblyAttributes.fs (for example), because it was never added to @(EmbeddedFiles).

It's possible that the correct fix is instead in Microsoft.FSharp.Targets. The behaviour of adding to CompileBefore rather than to Compile was added in dotnet/fsharp@01c621c, which is extremely vague and dates back before pull requests and GitHub were a thing; so I can't find any of the context for it.

Copy link
Member

@tmat tmat left a comment

Choose a reason for hiding this comment

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

CompileBefore items are F# specific construct, so the fix would be more appropriate in F#.

@tmat
Copy link
Member

tmat commented Feb 26, 2024

@KevinRansom

@KevinRansom
Copy link
Member

We will manage this in the F# repo.:
@tmat, please transfer the issue to https://github.com/dotnet/fsharp

@KevinRansom
Copy link
Member

We will manage this issue here: dotnet/fsharp#16771

@Smaug123 Smaug123 deleted the patch-1 branch February 26, 2024 22:44
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.

3 participants