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

NT IDE problem?

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

    NT IDE problem?

    NT ide marks as syntex error such lines:

    Code:
    public Brush xyz => somebrush;
    I think because NT ide doenst fully support Lambda expressions?

    in ide, this comes out:
    Click image for larger version  Name:	t5SOfbm.png Views:	1 Size:	3.6 KB ID:	1048239

    similarly, we cant use this:

    public int smth { get; set; } = 123;

    but Visual Studio allows.
    Last edited by ttodua; 02-14-2019, 02:15 PM.

    #2
    Ah, I see this is still similar to my old topic: https://ninjatrader.com/support/foru...e-not-possible

    it's not supported in NT. ok.

    Comment


      #3
      Hello TazoTodua,

      Thanks for your post.

      This is correct that this sort of custom C# code would not be supported by NinjaTrader. We are tracking interest to update the versions of .NET and C# that NinjaTrader uses under the ticket ID SFT-3124. I have addded a vote on your behalf.

      As with other req
      JimNinjaTrader Customer Service

      Comment


        #4
        Hello TazoTodua,

        Thanks for your post.

        This is correct that this sort of custom C# code would not be supported by NinjaTrader. We are tracking interest to update the versions of .NET and C# that NinjaTrader uses under the ticket ID SFT-3124. I have added a vote on your behalf.

        As with other feature requests, we cannot offer an ETA or promise of fulfillment, but your interest is tracked.

        Please let us know if we can be of further assistance.
        JimNinjaTrader Customer Service

        Comment


          #5
          You can manually set the language version in Visual studio so that it stops proposing code completions for C# 6 or 7 which are not supported by Ninjatrader's compiler. The attached screenshot shows how to do this.

          If you're using resharper, then add this to your sln.DotSettings file:

          <s:String x:Key="/Default/CodeInspection/CSharpLanguageProject/LanguageLevel/@EntryValue">CSharp50</s:String>
          Last edited by kevinenergy; 02-20-2019, 03:51 AM.

          Comment


            #6
            kevinenergy thanks for tip!

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by SantoshXX, Today, 03:09 AM
            0 responses
            6 views
            0 likes
            Last Post SantoshXX  
            Started by DanielTynera, Today, 01:14 AM
            0 responses
            2 views
            0 likes
            Last Post DanielTynera  
            Started by yertle, 04-18-2024, 08:38 AM
            9 responses
            41 views
            0 likes
            Last Post yertle
            by yertle
             
            Started by techgetgame, Yesterday, 11:42 PM
            0 responses
            12 views
            0 likes
            Last Post techgetgame  
            Started by sephichapdson, Yesterday, 11:36 PM
            0 responses
            2 views
            0 likes
            Last Post sephichapdson  
            Working...
            X