Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compilation Problems: AssemblyAttributes.cs

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

    Compilation Problems: AssemblyAttributes.cs

    Dear NT Team,
    I ran into Debugging Problems with Visual Studio which always crashed. I found out it was the Ninza Addons that caused that problem for some reason. Anyway while trying to fix the problem I must have done something wrong and now I receive the attached error message. Now nothing works anymore. Any help would be appreciated. Thanks!

    Click image for larger version

Name:	Screenshot 2025-01-20 224835.png
Views:	138
Size:	9.7 KB
ID:	1331702

    #2
    Hello,

    Thank you for your post.

    Generally, getting this compile error indicates a 3rd party compiler (such as Visual Studio) has attempted to compile the NinjaTrader Project and has generated duplicate project files. This can occur when attempting to build or run the NinjaTrader Project when opened in Visual Studio.

    To resolve:
    • Navigate to Documents\NinjaTrader 8\bin\Custom
    • Right-click the ‘obj’ folder → select Delete

    As a tip, leave the NinjaScript Editor window open, and this will auto-detect changes to open source files saved with Ctrl + s in Visual Studio (or any 3rd party editor) and will automatically trigger a compile.

    In other words, from Visual Studio or other external editors just saving the script .cs file will cause NinjaTrader to detect the saved file and automatically compile.

    Comment


      #3
      Thank you, Gaby
      Your instructions worked and thank you for the tip. It all works again.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      127 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      73 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      115 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      109 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      88 views
      0 likes
      Last Post CarlTrading  
      Working...
      X