Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Error installing compiled assemblies

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

    Error installing compiled assemblies

    Hi,

    I've come across this a few times and wonder what is the best way forward? I have a couple indicators that will refer to another of my indicators. If I compile these 2 indicators (separately), it (correctly I guess) bundles the indicator it calls. Problem though, when I go to install the 'other' indicator that uses the same dependency, I get these types of errors

    2019-10-13 14:48:20:884 WARNING: Error compiling import assembly: c:\Users\xxx2.cs(35,11) : error CS0433: The type 'NinjaTrader.NinjaScript.Indicators.Vxx' exists in both 'c:\Users\Ix\Documents\NinjaTrader 8\bin\Custom\xls.dll' and 'c:\Users\x\Documents\NinjaTrader 8\bin\Customxxx.dll'

    Which, given it's the same indicator, really doesn't matter to me, but it still prevents the install

    What's the suggested way around this, please? Thanks.

    #2
    Hello pjsmith,

    Thanks for your post.

    I would recommend exporting the dependent indicator in an assembly of its own. When you want to export an assembly package that uses this indicator, please do the following:

    1. Export the indicator as its own assembly
    2. Remove the indicator's source code from your platform
    3. Import the DLL for the indicator.
    4. Export your DLL which uses the code from the DLL. When exporting this DLL, please add a reference to the assembly which contains the dependent indicator.

    The new DLL will require the dependent DLL to be loaded first, but will avoid conflicting instances of the indicator between separate assemblies.

    I look forward to being of further assistance.
    JimNinjaTrader Customer Service

    Comment


      #3
      Got it (I think! ). Thanks,

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ghoul, Today, 06:02 PM
      3 responses
      14 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      44 views
      0 likes
      Last Post jeronymite  
      Started by Barry Milan, Yesterday, 10:35 PM
      7 responses
      20 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by AttiM, 02-14-2024, 05:20 PM
      10 responses
      180 views
      0 likes
      Last Post jeronymite  
      Started by DanielSanMartin, Yesterday, 02:37 PM
      2 responses
      13 views
      0 likes
      Last Post DanielSanMartin  
      Working...
      X