Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to solve different assemblies after recompile

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

    How to solve different assemblies after recompile

    I have an indicator (MyIndicator), which has an internal class (MyClass).
    My problem is that after a recompile, the assembly changes so this simple check is going to be false:

    if (myObject is MyClass)....

    Why?
    Because after recompile, the assembly changes, so AssemblyQualifiedName is different.

    NinjaTrader.Indicator.MyIndicator+MyClass, 95b2eab7f5ce4ef4a45668b8c386bfdd, Version=7.0.1000.31, Culture=neutral, PublicKeyToken=null

    NinjaTrader.Indicator.MyIndicator+MyClass, 20377f1f822648c8ab1daa5abb59e22b, Version=7.0.1000.31, Culture=neutral, PublicKeyToken=null


    maybe someone can point me to the right direction...

    #2
    Did you Modify your code? The change could be to identify the latest compilation from the previous code

    Comment


      #3
      Hello matthewbartlett,

      Welcome to the forums!

      We suggest using a dynamic type when working with objects that may exist in separate assemblies. This may be applicable for what you need. Please see the NinjaTrader 8 document below for more information.

      https://ninjatrader.com/support/help...assemblies.htm

      If this does not help, could you attach a small example script that sets this up so we could have a look on our end?

      Also, NinjaTrader 7 is on version 40. We suggest updating to the latest version. An instrument reset from the Control Center's Tools > Options > Data window will be necessary to bring in important instrument definition updates after installing.

      Update - https://ninjatrader.com/PlatformDirect

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

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by wobmon, Today, 11:56 AM
      8 responses
      31 views
      0 likes
      Last Post rockmanx00  
      Started by defa0009, 12-13-2024, 09:19 AM
      22 responses
      237 views
      1 like
      Last Post defa0009  
      Started by Parmenides48, Today, 06:03 PM
      0 responses
      5 views
      0 likes
      Last Post Parmenides48  
      Started by sclay115, 02-10-2025, 03:58 PM
      5 responses
      24 views
      0 likes
      Last Post rockmanx00  
      Started by sclay115, Today, 02:14 PM
      1 response
      11 views
      0 likes
      Last Post rockmanx00  
      Working...
      X