Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

C# 6 language features not compiling

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

    C# 6 language features not compiling

    I see that the NinjaTrader.custom.csproj is targeting .NET 4.8, which should include C# 6, but if I try to use expression bodied members or string interpolation I get a compiler error. Am I missing something or is NinjaTrader built with an older C# target?

    #2
    The NinjaScript C# compiler supports .NET 4.8.1 and C# 5.0.

    That's it.

    Yes, it's a pisser.
    Yes, NT knows it's a pisser.
    Last edited by bltdavid; 08-16-2023, 03:14 PM. Reason: Added link

    Comment


      #3
      Oh my bad, I didn't see that thread. Disappointing, but I can work around it.

      Comment


        #4
        Hello pshift,

        bltdavid is correct, NinjaTrader was written using C# 6.

        I've added your vote to updating this to a more up-to-date version, tracked with ID # SFT-3124.

        Please note, we receive many requests and cannot reasonably implement all requested features or changes. Interest is tracked internally and if enough interest is tracked, it would be weighed against how feasible it would be to make those changes to consider implementing, so we cannot offer an ETA or promise of fulfillment.

        When new features are implemented, they will be listed in the Release Notes page of the Help Guide. The ID number may be different than the internal feature request tracking ID, but the description of the feature will let you know if that feature has been implemented.

        Release Notes - https://ninjatrader.com/support/help...ease_notes.htm
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hello pshift,

          With release 8.1.2.0, NinjaTrader has updated the compiler to use C# 8.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

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