Xamarin Android - How to rebuild Resource.designer.cs

前端 未结 16 566
孤独总比滥情好
孤独总比滥情好 2021-02-03 17:10

In Xamarin Android - How to regenerate the Resource.designer.cs

I tried to mark all the XML file\'s Build Action as \"AndroidResource\" and still the Resource.designer.c

16条回答
  •  日久生厌
    2021-02-03 17:48

    The Resource.designer.cs folder would update as @Brendan Zagaeski mentioned.

    However, since it seems like that didn't solve your problem it looks like Xamarin didn't recognize any of the changes you made. At least this is what happened to me.

    I ended up solving it by renaming the generated "Layout" folder to "layout" ( I did the same for drawable and values). After that, just by building the project again the Resource.Designer updated successfully.

    Hope this helps someone.

提交回复
热议问题