Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 Segwin, 05-07-2018, 02:15 PM
          14 responses
          1,789 views
          0 likes
          Last Post aligator  
          Started by Jimmyk, 01-26-2018, 05:19 AM
          6 responses
          837 views
          0 likes
          Last Post emuns
          by emuns
           
          Started by jxs_xrj, 01-12-2020, 09:49 AM
          6 responses
          3,293 views
          1 like
          Last Post jgualdronc  
          Started by Touch-Ups, Today, 10:36 AM
          0 responses
          13 views
          0 likes
          Last Post Touch-Ups  
          Started by geddyisodin, 04-25-2024, 05:20 AM
          11 responses
          63 views
          0 likes
          Last Post halgo_boulder  
          Working...
          X