Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT8 8.1.2.0 generates projects with LangVersion=Latest headfaking VS2022

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

    NT8 8.1.2.0 generates projects with LangVersion=Latest headfaking VS2022

    The latest LangVersion in my VS2022 installation is C#11, not C#8.

    This is an issue b/c the little Intellisense tips that show up in my code are constantly telling me to use Target-typed new expressions, which is a C#9 feature and prevent my code from compiling.

    You can see this behavior by searching in NinjaTrader.Custom.csproj for:

    <LangVersion>Latest</LangVersion>

    NT8 should probably instead be generating a tag like this:

    <LangVersion>8</LangVersion>

    To avoid confusing people.

    Cheers.
    Last edited by carnitron; 10-31-2023, 10:48 PM.

    #2
    Actually, one bit of good news is that NT8 does not whack this value when I change it to 8 myself. You just need to be careful to change it in all the platform configurations.

    Comment


      #3
      Originally posted by carnitron View Post
      The latest LangVersion in my VS2022 installation is C#11, not C#8.

      This is an issue b/c the little Intellisense tips that show up in my code are constantly telling me to use Target-typed new expressions, which is a C#9 feature and prevent my code from compiling.

      You can see this behavior by searching in NinjaTrader.Custom.csproj for:

      <LangVersion>Latest</LangVersion>

      NT8 should probably instead be generating a tag like this:

      <LangVersion>8</LangVersion>

      To avoid confusing people.

      Cheers.
      Yes. NT should do this. +1
      Bruce DeVault
      QuantKey Trading Vendor Services
      NinjaTrader Ecosystem Vendor - QuantKey

      Comment


        #4
        Hello carnitron,

        Thanks for your post.

        I have reported the behavior to the Development team and they will be investigating this behavior. This ID for this reported behavior is NT-10817.

        Once the Development team has finished investigating this behavior and has reported their findings, I will update this forum thread with more information.

        Thanks for reporting this!
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          Hello all,

          Thanks for your patience.

          The Development team will be implementing a fix for this in the next version release of NinjaTrader (8.1.2.1).

          We do not have an ETA for when this version of NinjaTrader will be released at this time.
          <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

          Comment


            #6
            Sweet! Ok thanks for following up. It's not a huge issue for me, since I have it manually set at 8 and the project generator does not reset it or anything. But glad it will be fixed, b/c I'm sure it will avoid confusion for people.
            Last edited by carnitron; 11-13-2023, 12:28 PM.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by CarlTrading, 03-31-2026, 09:41 PM
            1 response
            41 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 04-01-2026, 02:41 AM
            0 responses
            20 views
            0 likes
            Last Post CarlTrading  
            Started by CaptainJack, 03-31-2026, 11:44 PM
            0 responses
            27 views
            1 like
            Last Post CaptainJack  
            Started by CarlTrading, 03-30-2026, 11:51 AM
            0 responses
            45 views
            0 likes
            Last Post CarlTrading  
            Started by CarlTrading, 03-30-2026, 11:48 AM
            0 responses
            37 views
            0 likes
            Last Post CarlTrading  
            Working...
            X