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:	263
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 sjsj2732, Yesterday, 04:31 AM
      0 responses
      30 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      286 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      282 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      132 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      90 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X