Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compilation error with .NET Framework

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

    Compilation error with .NET Framework

    i am getting the following error after i did a visual studio 22 community edition update:

    NinjaScript File,Error,Code,Line,Column,
    \NETFrameworkVersion=v4\6\1\AssemblyAttributes.cs, Duplicate 'global::System.Runtime.Versioning.TargetFramework Attribute' attribute,CS0579,4,12,

    i checked the project target framework in VS22 project properties and .NET Framework 4.6.1 is selected. any help is appreciated.​

    #2
    If this is on the latest version of NinjaTrader, I would suggest shutting down NT and VS and go to Documents -> NinjaTrader 8 -> bin -> Custom and delete .vs and then restart NT and try again, as a start, so you have a clean test.
    Bruce DeVault
    QuantKey Trading Vendor Services
    NinjaTrader Ecosystem Vendor - QuantKey

    Comment


      #3
      Hello love2code2trade,

      Bruce is providing good information.

      Below is a link to a forum post where this is discussed.
      I installed the latest version of NT8. I have all updates of Windows 10 installed. I have also the latest version of Visual Studio. When I compile from the Ninjascript editor it works fine. When I use VS and want to build in VS, I am getting the following error in the NinjaScript Editor: \NETFramework,version=v4\6\1AssemblyAttr
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        Bruce/ChelseaB that solved my problem, thanks!

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        633 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        364 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        105 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        567 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        568 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X