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.

    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.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ageeholdings, Today, 07:43 AM
        0 responses
        7 views
        0 likes
        Last Post ageeholdings  
        Started by pibrew, Today, 06:37 AM
        0 responses
        4 views
        0 likes
        Last Post pibrew
        by pibrew
         
        Started by rbeckmann05, Yesterday, 06:48 PM
        1 response
        14 views
        0 likes
        Last Post bltdavid  
        Started by llanqui, Today, 03:53 AM
        0 responses
        6 views
        0 likes
        Last Post llanqui
        by llanqui
         
        Started by burtoninlondon, Today, 12:38 AM
        0 responses
        12 views
        0 likes
        Last Post burtoninlondon  
        Working...
        X