Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Export NinjaScrip with System Reference

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

    Export NinjaScrip with System Reference

    I was exporting an Indicator I wrote that uses ACCORD .NET which required SYSTEM.DATA.DLL be added to the references to compile.

    Once I tried to export the "system.data" reference to properly setup the next system for import, I got the following error:
    WARNING: Error compiling export assembly: error CS0006: Metadata file 'C:\Users\Greg\Documents\NinjaTrader 8\bin\Custom\System.Data.dll' could not be found
    This file is in the "Windows\Microsoft.NET\Framework64\V4.0.30319\ " folder. How Can I export this reference?

    Also, why doesn't the export add the DLLs to the ZIP export file? I assume I need to add my \Custom\Accord.***" files to the ZIP to import. I certainly don't want to import the System.Data.DLL though...

    Thanks

    #2
    Hello NJA_MC,

    Thank you for your post.

    Does the reference to System.Data.dll list the full directory? Does it list NinjaTrader 8\bin\Custom?
    You can check this by right clicking in your NinjaScript Editor and selecting References.

    I am assuming NinjaTrader is looking for System.Data.dll in the Documents\NinjaTrader 8\bin\Custom folder instead of the needed directory.


    The export process is only to add .cs files to a .zip for import or to create a .dll from select .cs sources. It is not intended to include any other outside referenced libraries.
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      Hi Patrick,

      It is the entire path listed in the References box:
      Attached Files

      Comment


        #4
        Hello NJA_MC,

        You would make a copy of the System.Data.dll and paste it into Documents\NinjaTrader 8\bin\Custom. Change the reference in the NinjaScript Editor and then export.
        Patrick H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by JarodB, Today, 04:44 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Jason  
        Started by mahmud999, Today, 04:54 AM
        1 response
        4 views
        0 likes
        Last Post NinjaTrader_Marco  
        Started by leonardo3381, Today, 01:58 AM
        3 responses
        21 views
        0 likes
        Last Post NinjaTrader_Marco  
        Started by Mindset, Today, 02:16 AM
        0 responses
        7 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by dvcpro4, Yesterday, 07:20 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_ChrisSch  
        Working...
        X