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 argusthome, 03-08-2026, 10:06 AM
            0 responses
            83 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            47 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            29 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            32 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            66 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X