0

I know this has been answered before but they are not helpful. So, when I'm building the program,it is succesfull. But when I publish the project I get the following multiple errors -

Duplicate 'global::System.Runtime.Versioning.TargetFrameworkAttribute' attribute
.NETCoreApp,Version=v3.1.AssemblyAttributes.cs 4 Active

enter image description here

Any help is appreciated. Thanks.

Deepak
  • 376
  • 6
  • 23
  • 3
    Please share errors as text, not as images of text. Search engines and those people with visual impairments cannot read the error text. – Heretic Monkey Oct 12 '20 at 16:56
  • 1
    Including the actual text, rather than a picture of it, would be much more helpful. – Martin Costello Oct 12 '20 at 16:57
  • Try a clean build You are missing two references : IAdminWorker and IStoresWorker – jdweng Oct 12 '20 at 16:59
  • Here is a [workaround](https://stackoverflow.com/a/51424880/8335151) that solve "conflict issue". Besides, confirm if all the dll references have been included. – 大陸北方網友 Oct 13 '20 at 01:33
  • @jdweng they are not missing. Normal build works perfect. These only comes when I try to publish, however when I checked the reference they were all good. – Deepak Oct 13 '20 at 04:25
  • @HereticMonkey and Martin I'll include text shortly. – Deepak Oct 13 '20 at 04:26
  • Why are you building after publishing? Publishing you run the exe file and do not open VS. – jdweng Oct 13 '20 at 08:13

0 Answers0