Xamarin Android - How to rebuild Resource.designer.cs

前端 未结 16 748
孤独总比滥情好
孤独总比滥情好 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 18:02

    It would seem that this can happen for a number of reasons. One step that can help reveal the problem is to increase your build output verbosity in Visual studio: Tools -> Options -> Build and Run -> change the "MSBuild project build output verbosity" to "Diagnostic".

    In my case, one of my controls did not have an Id so it led to the Resource.Designer.cs not updating (but failing to do so silently).

    The file started updating again once I added an Id.

    NOTE: You will probably want to change the build output verbosity back to normal after you find your issue.

提交回复
热议问题