Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaScript Editor ERRORS

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

    NinjaScript Editor ERRORS

    none of the indicators will compile. keep getting this message (I have Net 4.8 installed on machine)

    \NETFramework,Version=v4\6\1\AssemblyAtttributes.c s ERROR Duplicate 'global::System.Runtime.VersioningTargetFrameworkA ttribute'attribute CODE CS0579 Line 4

    4 [assembly: global::System.Runtime.Versioning.TargetFrameworkA ttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.6.1")]

    #2
    correction from above...

    4 [assembly: global::System.Runtime.Versioning.TargetFrameworkA ttribute(".NETFramework,Version=v4.6.1", FrameworkDisplayName = ".NET Framework 4.6.1")]
    ​​

    Comment


      #3
      Hello hfwiley,

      Thank you for your reply.

      This means that Visual Studio generated project files that are causing duplicate errors. Go into Documents\NinjaTrader 8\bin\Custom and delete the "bin" and "obj" folders that were generated by Visual Studio.

      Also, if you are using Visual Studio, go to Project>NinjaTrader.Custom properties and make sure the target framework setting is set to 4.8.

      ​Please let us know if we may be of further assistance to you.

      Comment


        #4
        That worked..
        Thank You

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        88 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        48 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        31 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        34 views
        0 likes
        Last Post TheRealMorford  
        Started by Mindset, 02-28-2026, 06:16 AM
        0 responses
        68 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X