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

MT8 Indicator Build in VS Code

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

    MT8 Indicator Build in VS Code


    Hi,

    I've been building some indicators which are working well. Now I'm trying to move the code into a separate repo and build in them in isolation. I am getting the following error:

    C:\Users\xxxx\GitHub\NinjaTrader\Strategies\xxxx\M odelB.cs(25,22): error CS0234: The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)​
    C:\Users\xxxx\\GitHub\NinjaTrader\Indicators\xxxx\ ModelV.cs(723,16): error CS0246: The type or namespace name 'Brush' could not be found (are you missing a using directive or an assembly reference?)​


    I'm referencing the NinjaTrader Core dll in the csproj file as follows:

    <Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
    ​ <TargetFramework>net7.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    </PropertyGroup>
    <ItemGroup>
    <Reference Include="NinjaTrader.Core">
    <HintPath>references\NinjaTrader.Core.dll</HintPath>
    </Reference>
    </ItemGroup>
    </Project>

    I'm just using a standard dotnet build command to build.

    I'd really like to get an automated build using GitHub actions.

    Please can you help?


    #2
    Hello, thanks for writing in. Unfortunately, this is not supported and we do not have any examples that I can provide. NinjaTrader uses the CodeDOM module in C# that builds the Custom.DLL file and compiles all the dlls into the Custom DLL file but none of this is described in the help guide, so unfortunately it goes beyond the scope of support I am able to provide.
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by memonic, Yesterday, 01:23 PM
    2 responses
    12 views
    0 likes
    Last Post memonic
    by memonic
     
    Started by merc410, Today, 03:41 AM
    2 responses
    13 views
    0 likes
    Last Post merc410
    by merc410
     
    Started by sugalt, 04-30-2024, 04:02 AM
    2 responses
    13 views
    0 likes
    Last Post sugalt
    by sugalt
     
    Started by Ndakotan1313, 03-14-2024, 05:02 PM
    2 responses
    64 views
    0 likes
    Last Post blaise_code  
    Started by claxxical, 05-30-2017, 12:30 PM
    37 responses
    4,465 views
    0 likes
    Last Post Padan
    by Padan
     
    Working...
    X