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 Option Whisperer, Today, 09:05 AM
          0 responses
          1 view
          0 likes
          Last Post Option Whisperer  
          Started by cre8able, Yesterday, 01:16 PM
          3 responses
          11 views
          0 likes
          Last Post cre8able  
          Started by Harry, 05-02-2018, 01:54 PM
          10 responses
          3,203 views
          0 likes
          Last Post tharton3  
          Started by ChartTourist, Today, 08:22 AM
          0 responses
          6 views
          0 likes
          Last Post ChartTourist  
          Started by LiamTwine, Today, 08:10 AM
          0 responses
          2 views
          0 likes
          Last Post LiamTwine  
          Working...
          X