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 Mindset, 04-21-2026, 06:46 AM
          0 responses
          88 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          134 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          119 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          67 views
          0 likes
          Last Post PaulMohn  
          Working...
          X