Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Specify or Change C# Language Version in NT Editor

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

    Specify or Change C# Language Version in NT Editor

    I'm trying to find a way to set or change the C# language version that the NinjaScript Editor is using to compile. Its my understanding that NT 8 compiles add-ons/Indicators against .net runtime version 4.5, which includes support for C# 6.0. But if you attempt to use any new c# language features, NT generates a compile error. I assume because the compile options are hard coded to use c# 5.0 (or lower).

    My question is basically, how can I enable the current c# language version in the NT Editor? I can use the new language features if I am editing in Visual Studio, but NT still generates compile errors after saving in Visual Studio. I CAN set the c# language to 5.0 in Visual Studio, but that just removes the compile errors and doesn't allow using new language features.

    I have tried setting the language version in the csproj file itself, but the NT compile process seems to ignore the settings.

    TIA!

    #2
    Hello pmeaster,

    Thank you for your post and welcome to the NinjaTrader Support Forum!

    I do not believe it is possible to set the C# version in use. However, I will check with development on this matter.

    I will follow up here when I have details on this matter.

    Comment


      #3
      Hello pmeaster,

      Thank you for your patience.

      There is no supported means to do this in NinjaTrader.

      Please let me know if you have any questions.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      558 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      324 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      545 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X