Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Errors related to assemblyinfo.cs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Errors related to assemblyinfo.cs

    Hello, I am a client of Ninjatrader and have a lifetime version. I am trying to develop an add-On but have the following errors related to assemblyinfo.cs that prevent compliation... please help. How can I deal with the errors related to assemblyinfo.cs?
    NinjaScript File Error Code Line Column
    AssemblyInfo.cs Duplicate 'AssemblyCompany' attribute CS0579 9 12
    AssemblyInfo.cs Duplicate 'AssemblyConfiguration' attribute CS0579 8 12
    AssemblyInfo.cs Duplicate 'AssemblyCopyright' attribute CS0579 11 12
    AssemblyInfo.cs Duplicate 'AssemblyCulture' attribute CS0579 13 12
    AssemblyInfo.cs Duplicate 'AssemblyDescription' attribute CS0579 7 12
    AssemblyInfo.cs Duplicate 'AssemblyProduct' attribute CS0579 10 12
    AssemblyInfo.cs Duplicate 'AssemblyTitle' attribute CS0579 6 12
    AssemblyInfo.cs Duplicate 'AssemblyTrademark' attribute CS0579 12 12
    AssemblyInfo.cs Duplicate 'AssemblyVersion' attribute CS0579 21 12
    AssemblyInfo.cs Duplicate 'ComVisible' attribute CS0579 16 12
    Click image for larger version

Name:	image.png
Views:	246
Size:	93.3 KB
ID:	1235614

    #2
    Hello Realiori9999,

    This can happen if you tried to use visual studio and then compiled from visual studio. visual studio cannot be used for compiling because it generates extra files like AssemblyInfo.cs which will cause an error.

    To get rid of the errors you need to delete the duplicate files that are in Documents\NinjaTrader 8\bin\Custom. Without knowing exactly what happened to produce the error all that I can suggest is to look in the Documents\NinjaTrader 8\bin\Custom folder and check if there is another sub folder named bin or obj. If so delete those folders.

    Documents\NinjaTrader 8\bin\Custom\bin <- delete
    Documents\NinjaTrader 8\bin\Custom\obj <- delete

    If those folders don't exist you will need to do a manual search for AssemblyInfo.cs and see which files show up inside the Documents\NinjaTrader 8\bin\Custom folder tree. By default there is an
    AssemblyInfo.cs file which needs to be kept, that is Documents\NinjaTrader 8\bin\Custom\AssemblyInfo.cs

    Comment


      #3
      Yes thank you very much

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      561 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      325 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X