dotnet / dotnet/fsharp

ILLink.LinkAttributes.xml and ILLink.Substitutions.xml refer to non-existent entities

Open
#15,261 1 comment 0 reactions 1 assignee Claimed by @KevinRansom View on GitHub
Bug Impact-Low Tracking-External
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

I have an Android C# project that depends on F# projects. When I compile the Android C# project in release mode, I get these warnings:

```
21>resource ILLink.LinkAttributes.xml in FSharp.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a(74,6): Warning IL2008 : FSharp.Core: Could not resolve type 'Microsoft.FSharp.Core.FSharpInterfaceDataVersionLiteralAttribute'.
21>resource ILLink.Substitutions.xml in FSharp.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a(3,6): Warning IL2040 : FSharp.Core: Could not find embedded resource 'FSharpOptimizationCompressedData.FSharp.Core' to remove in assembly 'FSharp.Core'.
21>resource ILLink.Substitutions.xml in FSharp.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a(5,6): Warning IL2040 : FSharp.Core: Could not find embedded resource 'FSharpSignatureCompressedData.FSharp.Core' to remove in assembly 'FSharp.Core'.
21>resource ILLink.LinkAttributes.xml in FSharp.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a(74,6): Warning IL2008 : FSharp.Core: Could not resolve type 'Microsoft.FSharp.Core.FSharpInterfaceDataVersionLiteralAttribute'.
21>resource ILLink.Substitutions.xml in FSharp.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a(3,6): Warning IL2040 : FSharp.Core: Could not find embedded resource 'FSharpOptimizationCompressedData.FSharp.Core' to remove in assembly 'FSharp.Core'.
21>resource ILLink.Substitutions.xml in FSharp.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a(5,6): Warning IL2040 : FSharp.Core: Could not find embedded resource 'FSharpSignatureCompressedData.FSharp.Core' to remove in assembly 'FSharp.Core'.
21>resource ILLink.LinkAttributes.xml in FSharp.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a(74,6): Warning IL2008 : FSharp.Core: Could not resolve type 'Microsoft.FSharp.Core.FSharpInterfaceDataVersionLiteralAttribute'.
21>resource ILLink.Substitutions.xml in FSharp.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a(3,6): Warning IL2040 : FSharp.Core: Could not find embedded resource 'FSharpOptimizationCompressedData.FSharp.Core' to remove in assembly 'FSharp.Core'.
21>resource ILLink.Substitutions.xml in FSharp.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a(5,6): Warning IL2040 : FSharp.Core: Could not find embedded resource 'FSharpSignatureCompressedData.FSharp.Core' to remove in assembly 'FSharp.Core'.
21>resource ILLink.LinkAttributes.xml in FSharp.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a(74,6): Warning IL2008 : FSharp.Core: Could not resolve type 'Microsoft.FSharp.Core.FSharpInterfaceDataVersionLiteralAttribute'.
21>resource ILLink.Substitutions.xml in FSharp.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a(3,6): Warning IL2040 : FSharp.Core: Could not find embedded resource 'FSharpOptimizationCompressedData.FSharp.Core' to remove in assembly 'FSharp.Core'.
21>resource ILLink.Substitutions.xml in FSharp.Core, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a(5,6): Warning IL2040 : FSharp.Core: Could not find embedded resource 'FSharpSignatureCompressedData.FSharp.Core' to remove in assembly 'FSharp.Core'.
```

It therefore seems like `ILLink.LinkAttributes.xml` and `ILLink.Substitutions.xml` are not fully up to date, and refer to non-existent entities in FSharp.Core.

I'm using FSharp.Core 7.0.300.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.