dotnet / fsharp

The F# compiler, F# core library, F# language service, and F# tooling integration for Visual Studio
https://dotnet.microsoft.com/languages/fsharp
MIT License
3.89k stars 784 forks source link

F# tooling rejects any use of <AndroidAppBundleMetaDataFile> #13336

Open Happypig375 opened 2 years ago

Happypig375 commented 2 years ago

Xamarin Android defines a build item that is not a file path in the Include parameter. However, F# tooling reads this information and rejects the project altogether.

Repro steps

Add

<ItemGroup>
  <AndroidAppBundleMetaDataFile
    Include="com.android.tools.build.obfuscation/proguard.map:$(OutputPath)mapping.txt"
  />
</ItemGroup>

to an existing F# Xamarin.Android project. For example, one generated from Fabulous Xamarin Forms template.

Expected behavior

Project loads, builds, and archives as specified.

Actual behavior

image

Known workarounds

Not using this attribute. This impacts F# apps submitted to Google Play store as Google Play displays a warning image without this build item.

Related information

Provide any related information (optional):

vzarytovskii commented 2 years ago

I wonder where it happens, i will check the binlog.