• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

VS AddOn Solution Example

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

    VS AddOn Solution Example

    I was creating my own VS Solution for an AddOn I am developing. I noticed in the AddOn example that the two NinjaTrader dll's that are referenced are the NinjaTrader.Core and the NinjaTrader.Gui which are located in the "bin" directory.

    I use the x64 version of NT8. Should I have the solution reference the dll's in the bin64 directory? Because when I change the references to the dll's in the bin64 directory in the example solution I receive a number of errors. Are there specifics to creating a custom dll targeted for x64?

    #2
    Thank you for your question GrumpyTrader. Would it be possible to share some representative error output? Add-on development is an emerging area in NinjaTrader 8, and the messages you received may benefit other users in the community.

    Generally speaking, opening the 32 bit version of Ninja should output 32 bit binaries, and the 64 bit version should output multilib (32 and 64 bit system compatible) binaries. The dll files in the bin (as opposed to bin64) directory Ninja references by default should be the right ones for most configurations.

    If you need more control over how things are targeted, so that you can for example target 64 bit systems exclusively, you will want to configure your output through the C# project file, rather than changing your input libraries. Toward the bottom of bin\Custom\NinjaTrader.Custom.csproj , you will find this code, which you can replace by your own code to target different platforms :

    Code:
      <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
           Other similar extension points exist, see Microsoft.Common.targets.
      <Target Name="BeforeBuild">
      </Target>
      <Target Name="AfterBuild">
      </Target>
      -->
    This publicly available stack overflow page is a good starting point when manually targeting different platforms.

    http://stackoverflow.com/questions/1...-the-same-time

    Please remember that this file is a generated file; you will want to keep back-ups of this file somewhere where Ninja can not stomp it on start-up.
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by frankduc, Today, 08:38 AM
    0 responses
    2 views
    0 likes
    Last Post frankduc  
    Started by stefanjagger, Today, 07:47 AM
    2 responses
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by tonynt, Today, 07:07 AM
    1 response
    7 views
    0 likes
    Last Post tonynt
    by tonynt
     
    Started by Marklhc1988, Today, 06:53 AM
    3 responses
    11 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by ntbone, Today, 12:05 AM
    0 responses
    11 views
    0 likes
    Last Post ntbone
    by ntbone
     
    Working...
    X