Forum Xamarin.Android

Android Resources do not refresh in F# app

I created a F# app with the blank template, but cannot get new UI elements to show up in the Resources type provider.
Adding new elements to the Main.axml and rebuilding does regenerate the .\Resources\Resource.designer.fs file, but that has no effect on either the intellisense within VS, which only has the ID for the preexisting button. Running the project also fails, as the original resource ID of the preexisting button does not match whatever new ID the UI changes causes.

Any idea what's going on here?


  • CrashCollisonCrashCollison USMember

    Just tried the scenario on another machine, and it fails in the same way.

  • PhilNguyenPhilNguyen USMember

    I'm running into the same problem. The Resource.designer.fs file looks updated, but doesn't seem to have any effect on VS

  • JasonImisonJasonImison GBXamarin Team Xamurai

    You shouldn't be using a Resource.designer.fs file - that's generated using FSharp.CodeDom and is legacy.

    The new templates use a Resource.designer.cs and compile that using a type provider. See for the template used in VS for Mac.

Sign In or Register to comment.