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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      169 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      324 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      250 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      351 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      180 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X