<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
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!
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
NinjaTrader
Reference external libs from NinjaTrader.Custom
Collapse
X
-
Reference external libs from NinjaTrader.Custom
In my lib csproj I edit and used
Code: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.JesseNinjaTrader Customer Service
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.JesseNinjaTrader Customer Service
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.JesseNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by f.saeidi, Today, 11:02 AM
|
1 response
2 views
0 likes
|
Last Post Today, 11:08 AM | ||
Started by geotrades1, Today, 10:02 AM
|
4 responses
12 views
0 likes
|
Last Post
by geotrades1
Today, 11:08 AM
|
||
Started by rajendrasubedi2023, Today, 09:50 AM
|
3 responses
16 views
0 likes
|
Last Post Today, 10:57 AM | ||
Started by lorem, Today, 09:18 AM
|
2 responses
11 views
0 likes
|
Last Post Today, 10:55 AM | ||
Started by geddyisodin, Today, 05:20 AM
|
4 responses
30 views
0 likes
|
Last Post
by geddyisodin
Today, 10:45 AM
|
Comment