Not including referenced assemblies

Created at 07 Aug 2014, 01:40
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
AlexanderRC's avatar

AlexanderRC

Joined 04.02.2014

Not including referenced assemblies
07 Aug 2014, 01:40


Is it somehow possible to not include referenced assemblies into compiled .calgo file?

I want to distribute my assembly along with the .calgo. The assembly is updated automatically via self-update mechanism. The extra bloat of  .calgo is not needed...


@AlexanderRC
Replies

Spotware
07 Aug 2014, 11:00

We load all dependencies from .algo file to sandboxed AppDomain explicitly. Therefore we include all dependencies to .algo file. If you don't want to include your library to .algo file the only way to do it is to remove reference to that library from your algorithm. In that case you will need to load your library explicitly using Assembly.Load method.

After you load assembly you can create instances from it using .NET Reflection.


@Spotware