ILLink.LinkAttributes.xml and ILLink.Substitutions.xml refer to non-existent entities
- 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
Assessment
This issue has not been assessed yet.