I have on .NET 6 project using xamarin.android where the resource designer file generated with an error CS0131 : The left-hand side of an assignment must be a variable, property or indexer
:
public static void UpdateIdValues()
{
global::MyGame.Resource.Color.alignment_marker_color = global::MyGame.Resource.Color.alignment_marker_color;
global::MyGame.Resource.Color.white_transparent = global::MyGame.Resource.Color.white_transparent;
global::MyGame.Resource.Dimension.alignment_marker_height = global::MyGame.Resource.Dimension.alignment_marker_height;
// ...
}
with values generated like so :
public partial class Color
{
// aapt resource value: 0x7F010000
public const int alignment_marker_color = 2130771968;
// aapt resource value: 0x7F010001
public const int white_transparent = 2130771969;
// ...
}
Is it an issue with the xamarin dependency ? If so, is it something i can solve through nuget ? dotnet workload ?