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