<PropertyGroup>
<PostBuildEvent>xcopy /E /Y "$(TargetFileName)" "$(registry:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders@Personal)\NinjaTrader 8\bin\Custom"
xcopy /E /Y "$(TargetName).pdb" "$(registry:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders@Personal)\NinjaTrader 8\bin\Custom"</PostBuildEvent>
</PropertyGroup>
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Reference external libs from NinjaTrader.Custom
Collapse
X
-
Reference external libs from NinjaTrader.Custom
In my lib csproj I edit and used
I can see the external lib in Documents\NinjaTrader 8\bin\Custom folder together with other addons and NinjaTrade.Custom.dl. However NT cannot find it the assemblyCode:Tags: None
-
Hello,
Thank you for the post.
Could you provide more detail on what you are specifically trying that is not being found? I am unsure by what has been provided what the exact problem is currently.
It sounds like you have used the Build Events from the example Visual Studio solution here?
Is there an error with some code you are trying when NinjaTrader compiles? Could you provide an image or more detail on the specific problem?
I look forward to being of further assistance.
Comment
-
Hello,
Yes this would be expected the custom project is regenerated when you compile. You would need to use an external visual studio project if you want to use nuget or other more advanced solution options.
We have an example of creating a NinjaScript DLL in a separate project here: http://ninjatrader.com/support/helpG...t_overview.htm
the "AddOn Development Environment (Visual Studio Advanced)" contains a download for a whole solution which also contains the build event to copy the DLL. This solution file would be unchanged by compiling NinjaTrader because it is in a separate folder/solution. You should not directly edit the NinjaTrader.Custom.csproj file as this is used internally specifically.
This would reference the core files needed when creating NinjaScript items, you are free to add other references but keep in mind any references you add will also need to be added using the NinjaScript editor -> Right Click -> References menu.
I look forward to being of further assistance.
Comment
-
Hello,
These are stored in the Config file, but editing this file outside of the platform is advised against. The only supported/suggested way to add references is manually using the Editor.
For development, you can just add the references manually once and then you don't have to do anything further.
Once you export a NinjaScript assembly for other users to import, you can use the AdditionalReferences.txt file to include your assemblies in the final importable zip. When exporting you can select the other references to include and follow the instructions in the help guide to create a zip file with all resources in it.
I look forward to being of further assistance.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
629 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
364 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
564 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
568 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment