All classes compile and run in VS 2022 OK. Now, when trying to compile a strategy in the WL8 C# compiler I get a class being 'incessible due to protection level'. The composite class is public and so is the constructor, but it is located in a different branch of the same namespace. Similarly, the WL compiler does not open an extension class.
A workaround may be to have everything in the same branch and namespace, but that's not the C# idea. What am I missing?
Kind regards, Hermann
A workaround may be to have everything in the same branch and namespace, but that's not the C# idea. What am I missing?
Kind regards, Hermann
Rename
WealthLab's integrated C# compiler doesn't work like a VS project. It compiles each strategy as a self-contained unit and does not automatically pull in other source files that happen to live in the same namespace (or “branch” of it) the way a VS solution/project does.
Compile and put your dlls in WL's installation folder, start WL, and add the appropriate using directive(s) to the Strategy code.
Compile and put your dlls in WL's installation folder, start WL, and add the appropriate using directive(s) to the Strategy code.
Thank you, Cone. -- I have chosen a different route: nested classes as well as an extension class at the top level of the namespace. Thus the whole Strategy will be easier to port some day in just one file.
Keep in mind that you don't even need to use WL's compiler - you can compile your VS strategy output straight to WL's installation folder.
Your Response
Post
Edit Post
Login is required