Resource.Attribute' does not contain a definition for 'MediaRouteControllerWindowBackg

RakeshSainiRakeshSaini INMember ✭✭

Hi Team ,

During Project Build , We are getting below error-
'Error CS0117 'Resource.Attribute' does not contain a definition for 'MediaRouteControllerWindowBackground''
'Error CS0117 'Resource.Attribute' does not contain a definition for 'mediaRouteCastDrawable'
...

can any know , how can we solve these errors?

Best Answer

  • RakeshSainiRakeshSaini IN ✭✭
    Accepted Answer

    Thanks @JohnMiller , I have solved this Problem --
    Solution - restore and install the Packages to the previous Version .
    Clean and Build the Solution
    After update the Packages by NuGet package manager , Resource.Designer.cs does not contain a definition of some Attribute with new Packages .
    That's why restore and install the Packages to the previous Version.

Answers

  • RakeshSainiRakeshSaini INMember ✭✭

    To Solve this Problem , I Done with below Actions
    1)Delete Bin and Obj folders in project folder
    2)Delete contents of C:\Users{your username}\AppData\Local\Xamarin\zips
    3)Rebuild project

    but problem not solved!!

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai

    @RakeshSaini,

    Check the Android projects Properties and make sure it's set to compile with API 23 or higher. Next, make sure Xamarin.Forms is updated. You can use the NuGet package manager to check that.

  • RakeshSainiRakeshSaini INMember ✭✭

    @JohnMiller
    its not working for me!!

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai

    @RakeshSaini,

    Please upload a diagnostic build log and I will take a look at it. If the app name/information is private, feel free to send me a direct message instead.

  • RakeshSainiRakeshSaini INMember ✭✭
    Accepted Answer

    Thanks @JohnMiller , I have solved this Problem --
    Solution - restore and install the Packages to the previous Version .
    Clean and Build the Solution
    After update the Packages by NuGet package manager , Resource.Designer.cs does not contain a definition of some Attribute with new Packages .
    That's why restore and install the Packages to the previous Version.

Sign In or Register to comment.