Skip to content

MAUI Android projects generate an \obj\Debug\net6.0-android\Resource.designer.cs file containing code that assigns values to const identifiers #7724

Open
@Eilon

Description

@Eilon

Issue moved from dotnet/maui#9766


From @frauenholz on Tuesday, August 30, 2022 3:36:57 AM

When proper, the UpdateIdValues() method has about 59 statements (see Resource.designer - UpdateIdValues() proper.cs)

Something is causing the Android Resource.designer.cs file's UpdateIdValues() method to have 6000+ statements, the majority of which are assignment to const's, thus producing approx 6000+ compiler errors (see Resource.designer - UpdateIdValues() constAssigns.cs)

an example is the line:
global::MauiLib1.Resource.Animation.abc_tooltip_enter = global::MauiApp1.Resource.Animation.abc_tooltip_enter;;

where the target of the assignment is declared as:
public const int abc_tooltip_enter = 2130771978;

it is likely (but not certain) that this is related to when a MAUI app project references a MAUI library project, I am trying to pin it down

Resource.designer - UpdateIdValues.zip

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions