MAUI build errors : Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' attribute

KallemSandeep-8232 36 Reputation points
2024-05-30T07:17:55.4066667+00:00

Hi Team,

I am getting some strange build errors while I am rebuilidng the .NET MAUI mobile app solution. It worked fine till yesterday. All of sudden I am getting some strange errors now. I deleted .obj & bin folders and restrtaing visual studio & System multiple times but no use.

Here I am sharing the error screenshot for the refrence.

MAUI_Build_Error

This is one of those error type.

Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute
Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' attribute
Duplicate 'System.Reflection.AssemblyInformationalVersionAttribute' attribute.

Could you please help me on this. I am unable to proceed with the MAUI build process now.

Thanks in advance.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,319 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,121 questions
{count} votes