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

                        Comment

                        Latest Posts

                        Collapse

                        Topics Statistics Last Post
                        Started by aaadetos, 05-04-2021, 09:28 AM
                        1 response
                        5 views
                        0 likes
                        Last Post Lancer
                        by Lancer
                         
                        Started by Stanfillirenfro, Today, 04:34 AM
                        1 response
                        6 views
                        0 likes
                        Last Post Stanfillirenfro  
                        Started by Impeesa, Today, 04:31 AM
                        0 responses
                        4 views
                        0 likes
                        Last Post Impeesa
                        by Impeesa
                         
                        Started by knarfoe, Today, 03:41 AM
                        1 response
                        10 views
                        0 likes
                        Last Post NinjaTrader_Jason  
                        Started by leschgarrett, Today, 03:58 AM
                        0 responses
                        1 view
                        0 likes
                        Last Post leschgarrett  
                        Working...
                        X