Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error when building NinjaTrader 8 custom project

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

    Error when building NinjaTrader 8 custom project

    Hi all, I am getting the below error. Am I using the wrong version of .Net Framework?
    Severity Code Description Project File Line Suppression State
    Error CS0579 Duplicate 'global::System.Runtime.Versioning.TargetFramework Attribute' attribute NinjaTrader.Custom C:\Users\someone\Documents\NinjaTrader 8\bin\Custom\obj\x64\Debug\.NETFramework,Version=v 4.5.AssemblyAttributes.cs 4 Active

    #2
    Never mind. I deleted the obj folder for this and it got rid of the problem. Strange that clean and rebuild all did not do the same thing.

    Comment


      #3
      NeverDownMoney - Thank you very much !!!

      Comment


        #4
        Hello NeverDownMoney,

        Do you have the .NET 4.8 SDK installed?
        https://dotnet.microsoft.com/downloa...edium=referral

        Have you attempted to build NinjaTrader from Visual Studio instead of compiling from the NinjaScript Editor?
        (edit)
        If so, within 'Documents\NinjaTrader 8\bin\Custom\' delete the 'obj' folder.
        Last edited by NinjaTrader_ChelseaB; 09-15-2022, 08:01 AM.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hello NeverDownMoney. Thanks for solving the problem.

          I have .NET 4.8 SDK installed and used the NT8 debugger but did not compile (may be accidentally with F5) the NT8 indicator in VS. I tried the following without success:
          1. remove all occurrences of AssemblyAttributes.cs
          2. deleting Documents\NinjaTrader 8\bin\Custom\bin folder
          .

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Mindset, 04-21-2026, 06:46 AM
          0 responses
          88 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by M4ndoo, 04-20-2026, 05:21 PM
          0 responses
          134 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by M4ndoo, 04-19-2026, 05:54 PM
          0 responses
          68 views
          0 likes
          Last Post M4ndoo
          by M4ndoo
           
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          119 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          67 views
          0 likes
          Last Post PaulMohn  
          Working...
          X