When we export the library to a protected assembly, everything seems ok as there are no log messages or errors.
However, when we go to import the resulting zip file, the import fails with a message like:
Import failed: The NinjaScript Archive File may contain duplicate method names that already exist on you PC, ....
There are also compile errors in the log indicating: Error compiling import assembly: Name error CS1001: Identifier expected
The issue seems to be a bad template cs file that is generated in the zip file. Parts of the file seem fine, but parts for certain indicators are missing the indicator name. For example:
private OurNameSpace.[] cacheOurNameSpace.; // example from IndicatorRenderBase section
The name of the indicator is missing after the first dot, and should replace the second dot. Similar errors are in the other sections of the template code as well.
I suspect the problem has something to do with how the code is structured.
We use a number of abstract base classes.
Previously, via the Ninja 8 forum, we were told to place this code in the AddOns dir so the code would be properly generated/compiled.
See here: http://ninjatrader.com/support/forum...ad.php?t=77688
This worked, but the export seems to be broken when we use the mechanism.
Please advise.
Comment