Skip to content

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

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

@KevinRansom
Copy link

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