Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Sudden compiler error ...

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

    Sudden compiler error ...

    I get the following compiler error from NS Editor: see attachment

    It results in a file Attributes.cs containing:

    // <autogenerated />
    using System;
    using System.Reflection;
    [assembly: global::System.Runtime.Versioning.TargetFrameworkA ttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]​

    I did not modify or change anything regarding this.

    Any hint/idea what I should do ?

    I use Visual Studio to write code and NS Editor to compile ist.


    Attached Files

    #2
    Hello TraderChris123,

    Thank you for your post.

    We have seen this compile error when using Visual Studio and you run or build the solution in Visual Studio. When using VS as a code editor (see the tip at the bottom of this page), you should only save the file and you should not run/build/compile as this can result in errors within NinjaTrader. To resolve this, please follow these steps:
    • Open a file explorer and navigate to Documents\NinjaTrader 8\bin\Custom\obj
    • Look for a folder inside of 'obj' called release. Delete the 'release' folder
    • Recompile in NinjaTrader
    Please let us know if we may be of further assistance.

    Comment


      #3
      Thx Emily, you are Golden !

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      47 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      23 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      33 views
      1 like
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      51 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Working...
      X