NexusFi: Find Your Edge


Home Menu

 





How do you add a reference to a System namespaces


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one upshon with 2 posts (1 thanks)
    2. looks_two Quick Summary with 1 posts (0 thanks)
    3. looks_3 Big Mike with 1 posts (0 thanks)
    4. looks_4 sunpost with 1 posts (0 thanks)
    1. trending_up 3,192 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 4 posts
    2. attach_file 0 attachments




 
Search this Thread

How do you add a reference to a System namespaces

  #1 (permalink)
 upshon 
New Zealand
 
Experience: Advanced
Platform: Multicharts, TradeNav
Trading: Futures
Posts: 6 since Dec 2010
Thanks Given: 3
Thanks Received: 2

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

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Quantum physics & Trading dynamics
The Elite Circle
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
  #3 (permalink)
 upshon 
New Zealand
 
Experience: Advanced
Platform: Multicharts, TradeNav
Trading: Futures
Posts: 6 since Dec 2010
Thanks Given: 3
Thanks Received: 2


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>
<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>

Started this thread Reply With Quote
Thanked by:
  #4 (permalink)
 
sunpost's Avatar
 sunpost 
Pennsylvania, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: IB/Kinetick
Trading: Forex
Posts: 60 since Aug 2010
Thanks Given: 202
Thanks Received: 42

I backup and modify the \Documents\NinjaTrader 7\Config.xml file. In the <References> section add <string>System.Data.dll</string> Restart NT and the assembly should be available.

Reply With Quote
  #5 (permalink)
jackyma
Hong Kong, China
 
Posts: 3 since Nov 2013
Thanks Given: 0
Thanks Received: 0

Is it possible to include such modification (on Config.xml) in the export package, such that I don't need to teach the users to hack into Config.xml manually?

Thanks,
Jacky

Reply With Quote




Last Updated on February 3, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts