Error CS0579 Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute'
问题 When I build my application I get the following error Error CS0579 Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' attribute MyUIApp D:\MyUIApp\obj\Debug\netcoreapp3.1\.NETCoreApp,Version=v3.1.AssemblyAttributes.cs 4 Active The following code is autogenerated in the obj/Debug/netcoreapp3.1 folder // using System; using System.Reflection; [assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")] I have a