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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        163 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        82 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        125 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        206 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        185 views
        0 likes
        Last Post CarlTrading  
        Working...
        X