Description
Steps to Reproduce
- Create a Android app in VS using the F# template
- Try to build it.
- Observe that the Resource.designer.fs file is not generated. No resources can be resolved at runtime by doing say:
let foo = Application.Context.Resources.GetString(Resource_String.my_string_value)
Indeed on a fresh app as per Step 1 then Resource_String
won't even exist in the codebase, so immediate compile error. If it did exist (as in our case, a copy from 2020) then the auto-generated ID numbers will be out of date and will result in runtime exceptions when trying to resolve those resource IDs.
Expected Behavior
The Resource.designer.fs file should be generated on each build.
Actual Behavior
The Resource.designer.fs file is not being generated, ever.
Version Information
Microsoft Visual Studio Community 2019
Version 16.11.5
Notes
I am some what shocked to be creating this issue. It appears that F# builds have been broken now for sometime. I have only just noticed it because it is quite rare we need to make changes to our Resources in our app. There has been an issue open in the Xamarin.Android.FSharp.ResourceProvider project for a long time but there is no resolution. As this is a blocking issue and affects production apps I have created a issue here for better visibility.