Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to Add Reference to System.Data

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

    How to Add Reference to System.Data

    Hi

    How do you add a reference to a System namespaces?

    I need to access to objects in System.Data.dll

    As System.Data is in the GAC I dont want to reference the dll file directly, C:\Windows\Microsoft.NET\assembly\GAC_32\System.Da ta\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll but rather use the instance in the GAC.

    The Add references dialog box does not give me an option to to access the GAC, I have tried browsing to C:\Windows\assembly where you can see contents of GAC but dialog does not allow me to add.

    Is there a file that I need to edit manually, as I see in the reference dialog there are 5 System Assemblies referenced.

    Thanks

    Mike

    #2
    Hello,

    This file path will always need to be added manually there is no way to hard code it like the System.dll is added. You must add the full file path with the references window.

    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      I have figured it out.

      I have edited the Config.xml file in My Documents\NinjaTrader 7

      Add an element to the <References> tag as below.

      <References>
      <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <string>System.dll</string>
      <string>System.Core.dll</string>
      <string>System.Data.dll</string>
      <string>System.Drawing.dll</string>
      <string>System.Windows.Forms.dll</string>
      <string>System.XML.dll</string>
      <string>C:\Program Files (x86)\NinjaTrader 7\bin\NinjaTrader.Core.dll</string>
      <string>C:\Program Files (x86)\NinjaTrader 7\bin\WilsonORMapper.dll</string>
      <string>D:\\My Documents\NinjaTrader 7\bin\Custom\NinjaTrader.Vendor.dll</string>
      </ArrayOfString>
      </References>

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by sjsj2732, Yesterday, 04:31 AM
      0 responses
      31 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      286 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      283 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      133 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      91 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X