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 geddyisodin, Today, 05:20 AM
        3 responses
        20 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by lorem, Today, 09:18 AM
        1 response
        4 views
        0 likes
        Last Post lorem
        by lorem
         
        Started by bmartz, Today, 09:30 AM
        0 responses
        3 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by GussJ, 03-04-2020, 03:11 PM
        14 responses
        3,245 views
        0 likes
        Last Post GussJ
        by GussJ
         
        Started by ArkansasClint, Today, 09:28 AM
        0 responses
        2 views
        0 likes
        Last Post ArkansasClint  
        Working...
        X