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:	281
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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      64 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      93 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      48 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      106 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      63 views
      0 likes
      Last Post PaulMohn  
      Working...
      X