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 DannyP96, 05-18-2026, 02:38 PM
        1 response
        85 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        143 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        83 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        256 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        334 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X