I have created an AddOn, and I am testing the export process. I have added the source files to the project in the following structure:
NinjaTrader.Custom
- MyCompany
- MyClass (in MyCompany namespace)
- AddOns
- MyAddOn (uses MyCompany namespace and MyClass class)
When I go to export, I can only select the MyAddOn, not the MyClass class.
When I press the export button I get the error:
Error compiling export assembly. Please check your logs.
When I look in the logs it says:
The type or namespace name 'MyCompany' could not be found (are you missing a using directive or an assembly reference?)
What am I doing wrong here?
I have had a look at the following pages:
But they don't cover my scenario.
Also while trying to get this to work I did one attempt where I pressed the Add button on the NinjaScript Export window, and selected References from the Type menu in the Select dialogue, and ticked the PresentationFramework. When I tried to export with that selected I get the error:
Time Category Message
17/01/2016 9:57:37 PM Default Error compiling export assembly: error CS0006: Metadata file 'C:\Users\MyAccount\Documents\NinjaTrader 8\bin\Custom\PresentationFramework.dll' could not be found
That seems a bit strange. It happens when I select any reference.
Is this a bug, or I am doing something wrong. Again it is not covered in the above doco.
Thanks for your time.
Regards,
Scott
Comment