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 NullPointStrategies, Today, 05:17 AM
          0 responses
          39 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          124 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          64 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          41 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          46 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X