Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

System.Data adding as a reference

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

    System.Data adding as a reference

    I'm wanting to add System.Data as a reference, however while I have found the .dll in:

    C:\Windows\Microsoft.Net\Framework\<.Net Version>\System.Data.dll
    , I'm wanting to know the locations where the other references are. Like System.dll that I see in my list of references. It doesn't seem to have a specific location and as this strategy is for a client I'd like to add the reference in a way with as little complications between our two systems as possible. I believe adding in the same way the System.dll, System.XML.dll, etc. are added is the only way to do this, if I'm not mistaken. So what is the location of System.dll or to put it better how do I add a reference that will work on different systems like existing references seem to do?

    Thanks,
    Zach

    #2
    Hi zwentz,

    These should all be in the same folder (perhaps it's hidden?)

    You can add these as a reference via the right click menu, and add the appropriate reference in the code as well, at the top of the code you''ll see...

    using System;

    where you'll add, for example...

    using System.Data;
    TimNinjaTrader Customer Service

    Comment


      #3
      I checked for hidden.

      I guess what I'm wondering is where NinjaTrader locates System.dll? I'm looking for the version agnostic reference, so if a user has a newer or later version of .NET it will still work. Does that make sense?

      Comment


        #4
        i had to copy paste it to <My Documents>\NinjaTrader 7\bin\Custom\ for the same to work

        Comment


          #5
          Hey so here's a picture to help illustrate what I mean.



          Notice how the System.dll doesn't have a leading location like WilsonORMapper.dll.

          In that case what is the location of System.dll?

          Comment


            #6
            zwentz,

            This is expected behavior. Additional references you add will be added with full path listing.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Alright, I think I might be confusing the issue anyway. When I export a NinjaScript, I can include the .dll file that I have referenced can I not? If so, then there's not a problem.

              Comment


                #8
                zwentz, please see the instructions for exporting NinjaScripts with custom assemblies. It should be in the first tab - Adding custom assemblies or native DLLs.
                AustinNinjaTrader Customer Service

                Comment


                  #9
                  Perfect, thanks very much.

                  Comment


                    #10
                    You are very welcome.
                    AustinNinjaTrader Customer Service

                    Comment


                      #11
                      Out of interest, is this same technique possible with Ninja 6.5 as well?

                      Comment


                        #12
                        Unfortunately not Zach, on 6.5 you would need to add a reference manually in the NS editor.

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                        0 responses
                        574 views
                        0 likes
                        Last Post Geovanny Suaza  
                        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                        0 responses
                        332 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by Mindset, 02-09-2026, 11:44 AM
                        0 responses
                        101 views
                        0 likes
                        Last Post Mindset
                        by Mindset
                         
                        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                        0 responses
                        553 views
                        1 like
                        Last Post Geovanny Suaza  
                        Started by RFrosty, 01-28-2026, 06:49 PM
                        0 responses
                        551 views
                        1 like
                        Last Post RFrosty
                        by RFrosty
                         
                        Working...
                        X