Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Need help adding assembly references to Indicator

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

    Need help adding assembly references to Indicator

    Hello, I'm new to programming so I'm sorry if this is a dumb question.

    I need some advice on adding System.Data, System.Data.SqlClient and Dapper packages to my NT8 Indicator.

    The usual advice seems to be to compile my own class library and add it to the Custom folder.
    However, Windows won't let me download the runtime for .NET 4.8 so I can only target versions 5.0 and higher, which means this route has not worked for me so far.

    I have also tried copy-pasting various versions of the .dll's into Custom and adding them as references in the editor, but it seems the versions I am able to get with NuGet aren't compatible with NS.
    The compiler seems able to recognize the existence of the .dll files but does not find the types I need from them (IDbConnection & SqlConnection). VS22 has no problems finding them, and the source code is fine otherwise, so I assume I need to use something different in NT8.

    Does anyone know what I should be looking for as far as usable libraries go, or how I could target .NET 4.8 in VS22 to create my own? (I know it's not a .NET forum, sorry)

    Or is there another approach that I should try?

    Any ideas are much appreciated, thanks in advance


    #2
    It was a dumb question, I was using the wrong template type

    I should have chosen "Class Library (.NET Framework)".

    Comment


      #3
      Hi surefire93, thanks for posting. It looks like you got it resolved. Please let me know if any other questions come up. Ill be happy to help out.

      Kind regards,
      -ChrisL
      Chris L.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by zstheorist, Today, 07:52 PM
      0 responses
      3 views
      0 likes
      Last Post zstheorist  
      Started by pmachiraju, 11-01-2023, 04:46 AM
      8 responses
      149 views
      0 likes
      Last Post rehmans
      by rehmans
       
      Started by mattbsea, Today, 05:44 PM
      0 responses
      5 views
      0 likes
      Last Post mattbsea  
      Started by RideMe, 04-07-2024, 04:54 PM
      6 responses
      33 views
      0 likes
      Last Post RideMe
      by RideMe
       
      Started by tkaboris, Today, 05:13 PM
      0 responses
      5 views
      0 likes
      Last Post tkaboris  
      Working...
      X