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.

Developer technologies .NET Xamarin
Developer technologies .NET .NET MAUI
Developer technologies .NET Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.