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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        86 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        43 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        23 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        31 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        31 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X