-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resource.designer.fs is not being generated on build #6404
Comments
Hmm. What happened to the When did it start relying on a type provider like this? This has caught me out because I don't actually know when the regression occurred. All I know is, my Resource.designer.fs is last modified mid-2020 (!) and no matter what I try now (rebuilds the lot) it won't update it. It seems to no longer be in use (except my Resource_* references to it all over my codebase). |
I just tested the default Xamarin.Android F# template. You might create one of those and compare with your project. |
No the IDE didn't used to show squiggles after the initial design time build had completed. Doesn't seem like a blocking issue though.
It never really worked properly for many people as the F# codegen often produced uncompilable code. Also Xamarin.Android relies on public static fields being assigned at runtime. F# does not support public static fields so a new approach was required.
Around 5 years ago. |
What was updating our Resource.designer.fs through all these commits until 2020? We're always broadly up to date with Visual Studio releases, never more than 1 to 2 releases behind for more than a month or so. It is not like we haven't updated VS for the past year. |
Resouce.designer.fs may have still been generated, but it was deprecated around 5 years ago. Xamarin.Android must have finally stopped producing this file. |
Documented in release notes here: From what I remember, it was done so we could remove .NET framework-only types and support |
I think we understand the cause here. If you have further issues migrating to |
Steps to Reproduce
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.
The text was updated successfully, but these errors were encountered: