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

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.
                        BertrandNinjaTrader Customer Service

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by Rapine Heihei, 04-23-2024, 07:51 PM
                        2 responses
                        30 views
                        0 likes
                        Last Post Max238
                        by Max238
                         
                        Started by Shansen, 08-30-2019, 10:18 PM
                        24 responses
                        943 views
                        0 likes
                        Last Post spwizard  
                        Started by Max238, Today, 01:28 AM
                        0 responses
                        9 views
                        0 likes
                        Last Post Max238
                        by Max238
                         
                        Started by rocketman7, Today, 01:00 AM
                        0 responses
                        4 views
                        0 likes
                        Last Post rocketman7  
                        Started by wzgy0920, 04-20-2024, 06:09 PM
                        2 responses
                        28 views
                        0 likes
                        Last Post wzgy0920  
                        Working...
                        X