Xamarin Android - How to rebuild Resource.designer.cs

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

    I have found that Xamarin studio will stop regenerating the Resources file due to changes in the project file. The top build PropertyGroup should contain entries for

    **Your_Root_Namespace**
    Resources
    Assets
    True
    True
    Resources\Resource.designer.cs
    Resource
    *your value here*
    

    and for some reason these just disappear. If you open the csproj of the Android project with a text editor and add these entries it seems to work. I grabbed these entries from a fresh new project I created in Xamarin Studio that was working, which is possibly the easiest way to do this.

提交回复
热议问题